Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity

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

The recognized celebrity with confidence score.

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) ⇒ GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity.



5175
5176
5177
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 5175

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

Instance Attribute Details

#celebrityGoogle::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1Celebrity

Celebrity definition. Corresponds to the JSON property celebrity



5168
5169
5170
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 5168

def celebrity
  @celebrity
end

#confidenceFloat

Recognition confidence. Range [0, 1]. Corresponds to the JSON property confidence

Returns:

  • (Float)


5173
5174
5175
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 5173

def confidence
  @confidence
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5180
5181
5182
5183
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 5180

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