Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/videointelligence_v1p3beta1/classes.rb,
generated/google/apis/videointelligence_v1p3beta1/representations.rb,
generated/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
-
#celebrities ⇒ Array<Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity>
Top N match of the celebrities for the face in this track.
-
#face_track ⇒ Google::Apis::VideointelligenceV1p3beta1::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.
4785 4786 4787 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4785 def initialize(**args) update!(**args) end |
Instance Attribute Details
#celebrities ⇒ Array<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 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4778 def celebrities @celebrities end |
#face_track ⇒ Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Track
A track of an object instance.
Corresponds to the JSON property faceTrack
4783 4784 4785 |
# File 'generated/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 'generated/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 |