OcrLine 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).
Text String Text content per line.

Method Summary

crRegion(boundingBox, lines)

Syntax Sample

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

Parameters

  • boundingBox: String

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

  • text : string

    Text content per line.

Return Type

  • OcrLine Class Object