Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation

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

Overview

Celebrity recognition annotation per video.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation.



4600
4601
4602
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4600

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

Instance Attribute Details

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

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



4593
4594
4595
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4593

def celebrity_tracks
  @celebrity_tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


4598
4599
4600
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4598

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4605
4606
4607
4608
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4605

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