Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack

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

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.



4785
4786
4787
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 4785

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

Instance Attribute Details

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

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



4778
4779
4780
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 4778

def celebrities
  @celebrities
end

#face_trackGoogle::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Track

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



4783
4784
4785
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 4783

def face_track
  @face_track
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4790
4791
4792
4793
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 4790

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