填充OCR无法提取单位数

问题描述 投票:0回答:1

当我编辑图像并在第一个图像旁边添加一个数字时,该算法成功提取了价格 enter image description here

我使用python与paddleocrocrock Document的基本代码一起使用

from paddleocr import PaddleOCR ocr = PaddleOCR(use_angle_cls=True, lang='fr') result = ocr.ocr(image_path, cls=True) for line in result[0]: text = line[1][0] position = line[0] print(text, position) enter image description here 有一种方法或特定的配置,我可以用单位数来提取价格?

提出
max_text_length
值开关

lang=en

并在推理中使用
python ocr text-recognition paddleocr
1个回答
0
投票


ocr = PaddleOCR(use_angle_cls=True,lang='en', max_text_length=50)
img_path = './p.jpg'
result = ocr.ocr(img_path, cls=True, det=True)
恢复:

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.