Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1FaceDetectionAnnotation

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

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1FaceDetectionAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1FaceDetectionAnnotation.



357
358
359
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 357

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)


345
346
347
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 345

def thumbnail
  @thumbnail
end

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

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



350
351
352
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 350

def tracks
  @tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


355
356
357
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 355

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



362
363
364
365
366
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 362

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