Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation

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) ⇒ GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation.



1414
1415
1416
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 1414

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)


1402
1403
1404
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 1402

def thumbnail
  @thumbnail
end

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

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



1407
1408
1409
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 1407

def tracks
  @tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


1412
1413
1414
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 1412

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1419
1420
1421
1422
1423
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 1419

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