Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/videointelligence_v1p3beta1/classes.rb,
lib/google/apis/videointelligence_v1p3beta1/representations.rb,
lib/google/apis/videointelligence_v1p3beta1/representations.rb
Overview
The recognized celebrity with confidence score.
Instance Attribute Summary collapse
-
#celebrity ⇒ Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Celebrity
Celebrity definition.
-
#confidence ⇒ Float
Recognition confidence.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity
constructor
A new instance of GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity
Returns a new instance of GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity.
5565 5566 5567 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5565 def initialize(**args) update!(**args) end |
Instance Attribute Details
#celebrity ⇒ Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Celebrity
Celebrity definition.
Corresponds to the JSON property celebrity
5558 5559 5560 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5558 def celebrity @celebrity end |
#confidence ⇒ Float
Recognition confidence. Range [0, 1].
Corresponds to the JSON property confidence
5563 5564 5565 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5563 def confidence @confidence end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5570 5571 5572 5573 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 5570 def update!(**args) @celebrity = args[:celebrity] if args.key?(:celebrity) @confidence = args[:confidence] if args.key?(:confidence) end |