Class: Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageTag
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageTag
- Includes:
- MsRestAzure
- Defined in:
- lib/1.0/generated/azure_cognitiveservices_computervision/models/image_tag.rb
Overview
An image caption, i.e. a brief description of what the image depicts.
Instance Attribute Summary collapse
-
#confidence ⇒ Float
The level of confidence the service has in the caption.
-
#name ⇒ String
The tag value.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ImageTag class as Ruby Hash.
Instance Attribute Details
#confidence ⇒ Float
Returns The level of confidence the service has in the caption.
19 20 21 |
# File 'lib/1.0/generated/azure_cognitiveservices_computervision/models/image_tag.rb', line 19 def confidence @confidence end |
#name ⇒ String
Returns The tag value.
16 17 18 |
# File 'lib/1.0/generated/azure_cognitiveservices_computervision/models/image_tag.rb', line 16 def name @name end |
Class Method Details
.mapper ⇒ Object
Mapper for ImageTag class as Ruby Hash. This will be used for serialization/deserialization.
26 27 28 29 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 |
# File 'lib/1.0/generated/azure_cognitiveservices_computervision/models/image_tag.rb', line 26 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ImageTag', type: { name: 'Composite', class_name: 'ImageTag', model_properties: { name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, confidence: { client_side_validation: true, required: false, serialized_name: 'confidence', type: { name: 'Double' } } } } } end |