OcrWord Class

Information on a recognized word.

Inheritance
OcrWord

Constructor

OcrWord(*, bounding_box: Optional[str] = None, text: Optional[str] = None, **kwargs)

Parameters

bounding_box
str
Required

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
str
Required

String value of a recognized word.