class Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrWord

Information on a recognized word.

Attributes

bounding_box[RW]

@return [String] Bounding box of a recognized word. The four integers represent the x-coordinate of the left edge, the y-coordinate of the top edge, width, and height of the bounding box, in the coordinate system of the input image, after it has been rotated around its center according to the detected text angle (see textAngle property), with the origin at the top-left corner, and the y-axis pointing down.

text[RW]

@return [String] String value of a recognized word.

Public Class Methods

mapper() click to toggle source

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

# File lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_word.rb, line 31
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'OcrWord',
    type: {
      name: 'Composite',
      class_name: 'OcrWord',
      model_properties: {
        bounding_box: {
          client_side_validation: true,
          required: false,
          serialized_name: 'boundingBox',
          type: {
            name: 'String'
          }
        },
        text: {
          client_side_validation: true,
          required: false,
          serialized_name: 'text',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end