Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/videointelligence_v1p3beta1/classes.rb,
lib/google/apis/videointelligence_v1p3beta1/representations.rb,
lib/google/apis/videointelligence_v1p3beta1/representations.rb

Overview

Face detection annotation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation.



5019
5020
5021
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5019

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#thumbnailString

The thumbnail of a person's face. Corresponds to the JSON property thumbnail NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


5007
5008
5009
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5007

def thumbnail
  @thumbnail
end

#tracksArray<Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Track>

The face tracks with attributes. Corresponds to the JSON property tracks



5012
5013
5014
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5012

def tracks
  @tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


5017
5018
5019
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5017

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5024
5025
5026
5027
5028
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5024

def update!(**args)
  @thumbnail = args[:thumbnail] if args.key?(:thumbnail)
  @tracks = args[:tracks] if args.key?(:tracks)
  @version = args[:version] if args.key?(:version)
end