OcrRegion Type

Recognized text results, including text content and information of coordinate positions.

Field Summary

Name Type Meaning
BoundingBox String Contains coordinate information of the text line (X,Y,W,H).
Lines OcrLine Type Array(or OcrTranslateLine Type Array) Contains coordinate and content information for each text line (OcrTranslateLine contains translation result information).

Method Summary

OcrRegion(boundingBox, lines)

Syntax Sample

from vision.models import OcrRegion
OcrRegion(boundingBox="237,196,164,16",[OcrLine(boundingBox="237,196,164,16", text="test")])

Parameters

  • boundingBox : String

    Contains coordinate information of the text line (X,Y,W,H).

  • lines : OcrLine Type Array

    Contains coordinate and content information for each text line.

Return Type

  • OcrRegion Class Object