class Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p1beta1DetectedAttribute
A generic detected attribute represented by name in string format.
Attributes
confidence[RW]
Detected attribute confidence. Range [0, 1]. Corresponds to the JSON property `confidence` @return [Float]
name[RW]
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` @return [String]
value[RW]
Text value of the detection result. For example, the value for “HairColor” can be “black”, “blonde”, etc. Corresponds to the JSON property `value` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/videointelligence_v1p3beta1/classes.rb, line 2376 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/videointelligence_v1p3beta1/classes.rb, line 2381 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