Class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack

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

The annotation result of a celebrity face track. RecognizedCelebrity field could be empty if the face track does not have any matched celebrities.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1CelebrityTrack

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1CelebrityTrack.



5191
5192
5193
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 5191

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#celebritiesArray<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity>

Top N match of the celebrities for the face in this track. Corresponds to the JSON property celebrities



5184
5185
5186
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 5184

def celebrities
  @celebrities
end

#face_trackGoogle::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1Track

A track of an object instance. Corresponds to the JSON property faceTrack



5189
5190
5191
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 5189

def face_track
  @face_track
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5196
5197
5198
5199
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 5196

def update!(**args)
  @celebrities = args[:celebrities] if args.key?(:celebrities)
  @face_track = args[:face_track] if args.key?(:face_track)
end