Class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation

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

Overview

Face detection annotation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation.



3789
3790
3791
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 3789

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)


3777
3778
3779
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 3777

def thumbnail
  @thumbnail
end

#tracksArray<Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p2beta1Track>

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



3782
3783
3784
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 3782

def tracks
  @tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


3787
3788
3789
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 3787

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3794
3795
3796
3797
3798
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 3794

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