class Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageCaption

An image caption, i.e. a brief description of what the image depicts.

Attributes

confidence[RW]

@return [Float] The level of confidence the service has in the caption

text[RW]

@return [String] The text of the caption

Public Class Methods

mapper() click to toggle source

Mapper for ImageCaption class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/1.0/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