Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation

Inherits:
Object
  • Object
show all
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

Celebrity recognition annotation per video.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation.



4759
4760
4761
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4759

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

Instance Attribute Details

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

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



4752
4753
4754
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4752

def celebrity_tracks
  @celebrity_tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


4757
4758
4759
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4757

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4764
4765
4766
4767
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4764

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