Class: Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageDescriptionDetails
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageDescriptionDetails
- Includes:
- MsRestAzure
- Defined in:
- lib/2.0/generated/azure_cognitiveservices_computervision/models/image_description_details.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.
-
#tags ⇒ Array<String>
A collection of image tags.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ImageDescriptionDetails 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_details.rb', line 21 def captions @captions end |
#tags ⇒ Array<String>
Returns A collection of image tags.
17 18 19 |
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/image_description_details.rb', line 17 def @tags end |
Class Method Details
.mapper ⇒ Object
Mapper for ImageDescriptionDetails class as Ruby Hash. This will be used for serialization/deserialization.
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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/2.0/generated/azure_cognitiveservices_computervision/models/image_description_details.rb', line 28 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ImageDescriptionDetails', type: { name: 'Composite', class_name: 'ImageDescriptionDetails', model_properties: { tags: { client_side_validation: true, required: false, serialized_name: '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: 'captions', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ImageCaptionElementType', type: { name: 'Composite', class_name: 'ImageCaption' } } } } } } } end |