Class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity

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

Overview

The recognized celebrity with confidence score.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity.



5803
5804
5805
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 5803

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

Instance Attribute Details

#celebrityGoogle::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1Celebrity

Celebrity definition. Corresponds to the JSON property celebrity



5796
5797
5798
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 5796

def celebrity
  @celebrity
end

#confidenceFloat

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

Returns:

  • (Float)


5801
5802
5803
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 5801

def confidence
  @confidence
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5808
5809
5810
5811
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 5808

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