Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/videointelligence_v1p3beta1/classes.rb,
generated/google/apis/videointelligence_v1p3beta1/representations.rb,
generated/google/apis/videointelligence_v1p3beta1/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, for example, glasses, dark_glasses, mouth_open.
-
#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.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1DetectedAttribute
Returns a new instance of GoogleCloudVideointelligenceV1p3beta1DetectedAttribute.
4817 4818 4819 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4817 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
Detected attribute confidence. Range [0, 1].
Corresponds to the JSON property confidence
4803 4804 4805 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4803 def confidence @confidence end |
#name ⇒ String
The name of the attribute, for example, glasses, dark_glasses, mouth_open. A
full list of supported type names will be provided in the document.
Corresponds to the JSON property name
4809 4810 4811 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4809 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
4815 4816 4817 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4815 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4822 4823 4824 4825 4826 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4822 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 |