class Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrRegion
A region consists of multiple lines (e.g. a column of text in a multi-column document).
Attributes
bounding_box[RW]
@return [String] Bounding box of a recognized region. 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.
lines[RW]
@return [Array<OcrLine>] An array of recognized lines of text.
Public Class Methods
mapper()
click to toggle source
Mapper for OcrRegion
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_region.rb, line 32 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'OcrRegion', type: { name: 'Composite', class_name: 'OcrRegion', model_properties: { bounding_box: { client_side_validation: true, required: false, serialized_name: 'boundingBox', type: { name: 'String' } }, lines: { client_side_validation: true, required: false, serialized_name: 'lines', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'OcrLineElementType', type: { name: 'Composite', class_name: 'OcrLine' } } } } } } } end