Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/videointelligence_v1/classes.rb,
lib/google/apis/videointelligence_v1/representations.rb,
lib/google/apis/videointelligence_v1/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.



4344
4345
4346
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 4344

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)


4332
4333
4334
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 4332

def thumbnail
  @thumbnail
end

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

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



4337
4338
4339
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 4337

def tracks
  @tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


4342
4343
4344
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 4342

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4349
4350
4351
4352
4353
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 4349

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