Class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation

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



1501
1502
1503
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1501

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)


1489
1490
1491
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1489

def thumbnail
  @thumbnail
end

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

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



1494
1495
1496
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1494

def tracks
  @tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


1499
1500
1501
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1499

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1506
1507
1508
1509
1510
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1506

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