Class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/videointelligence_v1p2beta1/classes.rb,
lib/google/apis/videointelligence_v1p2beta1/representations.rb,
lib/google/apis/videointelligence_v1p2beta1/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
-
#celebrities ⇒ Array<Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity>
Top N match of the celebrities for the face in this track.
-
#face_track ⇒ Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1Track
A track of an object instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1CelebrityTrack
constructor
A new instance of GoogleCloudVideointelligenceV1p3beta1CelebrityTrack.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1CelebrityTrack
Returns a new instance of GoogleCloudVideointelligenceV1p3beta1CelebrityTrack.
5191 5192 5193 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 5191 def initialize(**args) update!(**args) end |
Instance Attribute Details
#celebrities ⇒ Array<Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity>
Top N match of the celebrities for the face in this track.
Corresponds to the JSON property celebrities
5184 5185 5186 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 5184 def celebrities @celebrities end |
#face_track ⇒ Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1Track
A track of an object instance.
Corresponds to the JSON property faceTrack
5189 5190 5191 |
# File 'lib/google/apis/videointelligence_v1p2beta1/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 'lib/google/apis/videointelligence_v1p2beta1/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 |