Class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/videointelligence_v1beta2/classes.rb,
generated/google/apis/videointelligence_v1beta2/representations.rb,
generated/google/apis/videointelligence_v1beta2/representations.rb

Overview

A generic detected attribute represented by name in string format.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1DetectedAttribute

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1DetectedAttribute.



5223
5224
5225
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 5223

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#confidenceFloat

Detected attribute confidence. Range [0, 1]. Corresponds to the JSON property confidence

Returns:

  • (Float)


5209
5210
5211
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 5209

def confidence
  @confidence
end

#nameString

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

Returns:

  • (String)


5215
5216
5217
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 5215

def name
  @name
end

#valueString

Text value of the detection result. For example, the value for "HairColor" can be "black", "blonde", etc. Corresponds to the JSON property value

Returns:

  • (String)


5221
5222
5223
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 5221

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5228
5229
5230
5231
5232
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 5228

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