Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation

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

Overview

Face detection annotation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation.



4810
4811
4812
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4810

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)


4798
4799
4800
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4798

def thumbnail
  @thumbnail
end

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

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



4803
4804
4805
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4803

def tracks
  @tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


4808
4809
4810
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4808

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4815
4816
4817
4818
4819
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4815

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