OcrTranslateLine类型

Ocr翻译出的文本行,包括文本翻译内容以及该行的坐标位置信息

Field Summary

name type meaning
boundingBox string 含有文本行的坐标信息(X,Y,W,H)
text string 每行文字的原始内容文本
toText string 每行文字翻译结果的内容文本

Method Summary

OcrRegion(boundingBox, lines)

syntax sample

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

parameters

  • boundingBox : string

    含有文本的区域坐标信息(X,Y,W,H)

  • text : string

    每行文字的原始内容文本

  • toText : string

    每行文字的翻译内容文本

return type

  • OcrTranslateLine Class Object

results matching ""

    No results matching ""