Class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/videointelligence_v1p2beta1/classes.rb,
generated/google/apis/videointelligence_v1p2beta1/representations.rb,
generated/google/apis/videointelligence_v1p2beta1/representations.rb

Overview

Celebrity recognition annotation per video.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation.



5165
5166
5167
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 5165

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

Instance Attribute Details

#celebrity_tracksArray<Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack>

The tracks detected from the input video, including recognized celebrities and other detected faces in the video. Corresponds to the JSON property celebrityTracks



5158
5159
5160
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 5158

def celebrity_tracks
  @celebrity_tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


5163
5164
5165
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 5163

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5170
5171
5172
5173
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 5170

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