Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute
- 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
A generic detected attribute represented by name in string format.
Instance Attribute Summary collapse
-
#confidence ⇒ Float
Detected attribute confidence.
-
#name ⇒ String
The name of the attribute, i.e.
-
#value ⇒ String
Text value of the detection result.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1DetectedAttribute
constructor
A new instance of GoogleCloudVideointelligenceV1p3beta1DetectedAttribute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1DetectedAttribute
Returns a new instance of GoogleCloudVideointelligenceV1p3beta1DetectedAttribute
3650 3651 3652 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 3650 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
Detected attribute confidence. Range [0, 1].
Corresponds to the JSON property confidence
3636 3637 3638 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 3636 def confidence @confidence end |
#name ⇒ String
The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc.
A full list of supported type names will be provided in the document.
Corresponds to the JSON property name
3642 3643 3644 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 3642 def name @name end |
#value ⇒ String
Text value of the detection result. For example, the value for "HairColor"
can be "black", "blonde", etc.
Corresponds to the JSON property value
3648 3649 3650 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 3648 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3655 3656 3657 3658 3659 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 3655 def update!(**args) @confidence = args[:confidence] if args.key?(:confidence) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |