Class: Azure::CognitiveServices::ComputerVision::V2_1::Models::DetectedBrand
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ComputerVision::V2_1::Models::DetectedBrand
- 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
-
#confidence ⇒ Float
image, as a value ranging from 0 to 1.
-
#name ⇒ String
Label for the brand.
-
#rectangle ⇒ BoundingRect
Approximate location of the detected brand.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DetectedBrand class as Ruby Hash.
Instance Attribute Details
#confidence ⇒ Float
image, as a value ranging from 0 to 1.
20 21 22 |
# File 'lib/2.1/generated/azure_cognitiveservices_computervision/models/detected_brand.rb', line 20 def confidence @confidence end |
#name ⇒ String
Returns 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 |
#rectangle ⇒ BoundingRect
Returns 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
.mapper ⇒ Object
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 |