class Azure::CognitiveServices::ComputerVision::V1_0::Models::OcrLine
An object describing a single recognized line of text.
Attributes
bounding_box[RW]
@return [String] Bounding box of a recognized line. 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.
words[RW]
@return [Array<OcrWord>] An array of objects, where each object represents a recognized word.
Public Class Methods
mapper()
click to toggle source
Mapper for OcrLine
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_line.rb, line 32 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'OcrLine', type: { name: 'Composite', class_name: 'OcrLine', model_properties: { bounding_box: { client_side_validation: true, required: false, serialized_name: 'boundingBox', type: { name: 'String' } }, words: { client_side_validation: true, required: false, serialized_name: 'words', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'OcrWordElementType', type: { name: 'Composite', class_name: 'OcrWord' } } } } } } } end