OcrTranslateLine Type

Line of text translated by OCR, 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 Original text per line.
Totext String Text of the translation result per line.

Method Summary

OcrRegion(boundingBox, lines)

Syntax Sample

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

Parameters

  • boundingBox : string

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

  • text : string

    Original text per line.

  • toText : string

    Translation text per line

Return Type

  • OcrTranslateLine Class Object