Class: Azure::CognitiveServices::ComputerVision::V2_1::Models::DetectedBrand

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2.1/generated/azure_cognitiveservices_computervision/models/detected_brand.rb

Overview

A brand detected in an image.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#confidenceFloat

image, as a value ranging from 0 to 1.

Returns:

  • (Float)

    Confidence score of having observed the brand in the



20
21
22
# File 'lib/2.1/generated/azure_cognitiveservices_computervision/models/detected_brand.rb', line 20

def confidence
  @confidence
end

#nameString

Returns Label for the brand.

Returns:

  • (String)

    Label for the brand.



16
17
18
# File 'lib/2.1/generated/azure_cognitiveservices_computervision/models/detected_brand.rb', line 16

def name
  @name
end

#rectangleBoundingRect

Returns Approximate location of the detected brand.

Returns:

  • (BoundingRect)

    Approximate location of the detected brand.



23
24
25
# File 'lib/2.1/generated/azure_cognitiveservices_computervision/models/detected_brand.rb', line 23

def rectangle
  @rectangle
end

Class Method Details

.mapperObject

Mapper for DetectedBrand class as Ruby Hash. This will be used for serialization/deserialization.



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/2.1/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