Class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1beta2DetectedAttribute
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1beta2DetectedAttribute
- 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
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) ⇒ GoogleCloudVideointelligenceV1beta2DetectedAttribute
constructor
A new instance of GoogleCloudVideointelligenceV1beta2DetectedAttribute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta2DetectedAttribute
Returns a new instance of GoogleCloudVideointelligenceV1beta2DetectedAttribute.
1232 1233 1234 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 1232 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
Detected attribute confidence. Range [0, 1].
Corresponds to the JSON property confidence
1218 1219 1220 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 1218 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
1224 1225 1226 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 1224 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
1230 1231 1232 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 1230 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1237 1238 1239 1240 1241 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 1237 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 |