Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack

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

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1CelebrityTrack

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1CelebrityTrack.



4626
4627
4628
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4626

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

Instance Attribute Details

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

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



4619
4620
4621
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4619

def celebrities
  @celebrities
end

#face_trackGoogle::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1Track

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



4624
4625
4626
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4624

def face_track
  @face_track
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4631
4632
4633
4634
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4631

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