class Azure::CognitiveServices::ComputerVision::V2_0::Models::DetectedBrand
A brand detected in an image.
Attributes
confidence[RW]
@return [Float] Confidence score of having observed the brand in the image, as a value ranging from 0 to 1.
name[RW]
@return [String] Label for the brand.
rectangle[RW]
@return [BoundingRect] Approximate location of the detected brand.
Public Class Methods
mapper()
click to toggle source
Mapper for DetectedBrand
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2.0/generated/azure_cognitiveservices_computervision/models/detected_brand.rb, line 30 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'DetectedBrand', type: { name: 'Composite', class_name: 'DetectedBrand', model_properties: { name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, confidence: { client_side_validation: true, required: false, read_only: true, serialized_name: 'confidence', type: { name: 'Double' } }, rectangle: { client_side_validation: true, required: false, read_only: true, serialized_name: 'rectangle', type: { name: 'Composite', class_name: 'BoundingRect' } } } } } end