Class: Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageDescription
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageDescription
- Includes:
- MsRestAzure
- Defined in:
- lib/2.0/generated/azure_cognitiveservices_computervision/models/image_description.rb
Overview
A collection of content tags, along with a list of captions sorted by confidence level, and image metadata.
Instance Attribute Summary collapse
-
#captions ⇒ Array<ImageCaption>
level.
- #metadata ⇒ ImageMetadata
-
#request_id ⇒ String
Id of the REST API request.
-
#tags ⇒ Array<String>
A collection of image tags.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ImageDescription class as Ruby Hash.
Instance Attribute Details
#captions ⇒ Array<ImageCaption>
level.
21 22 23 |
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/image_description.rb', line 21 def captions @captions end |
#metadata ⇒ ImageMetadata
27 28 29 |
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/image_description.rb', line 27 def @metadata end |
#request_id ⇒ String
Returns Id of the REST API request.
24 25 26 |
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/image_description.rb', line 24 def request_id @request_id end |
#tags ⇒ Array<String>
Returns A collection of image tags.
17 18 19 |
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/image_description.rb', line 17 def @tags end |
Class Method Details
.mapper ⇒ Object
Mapper for ImageDescription class as Ruby Hash. This will be used for serialization/deserialization.
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 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/image_description.rb', line 34 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ImageDescription', type: { name: 'Composite', class_name: 'ImageDescription', model_properties: { tags: { client_side_validation: true, required: false, serialized_name: 'description.tags', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, captions: { client_side_validation: true, required: false, serialized_name: 'description.captions', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ImageCaptionElementType', type: { name: 'Composite', class_name: 'ImageCaption' } } } }, request_id: { client_side_validation: true, required: false, serialized_name: 'requestId', type: { name: 'String' } }, metadata: { client_side_validation: true, required: false, serialized_name: 'metadata', type: { name: 'Composite', class_name: 'ImageMetadata' } } } } } end |