Class: Azure::CognitiveServices::ComputerVision::V2_1::Models::ImageCaption
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ComputerVision::V2_1::Models::ImageCaption
- Includes:
- MsRestAzure
- Defined in:
- lib/2.1/generated/azure_cognitiveservices_computervision/models/image_caption.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.
-
#text ⇒ String
The text of the caption.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ImageCaption 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/2.1/generated/azure_cognitiveservices_computervision/models/image_caption.rb', line 19 def confidence @confidence end |
#text ⇒ String
Returns The text of the caption.
16 17 18 |
# File 'lib/2.1/generated/azure_cognitiveservices_computervision/models/image_caption.rb', line 16 def text @text end |
Class Method Details
.mapper ⇒ Object
Mapper for ImageCaption 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/2.1/generated/azure_cognitiveservices_computervision/models/image_caption.rb', line 26 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ImageCaption', type: { name: 'Composite', class_name: 'ImageCaption', model_properties: { text: { client_side_validation: true, required: false, serialized_name: 'text', type: { name: 'String' } }, confidence: { client_side_validation: true, required: false, serialized_name: 'confidence', type: { name: 'Double' } } } } } end |