【发布时间】:2017-10-02 02:13:53
【问题描述】:
您好,我正在尝试使用 Tesseract 从收据中识别日期。此代码可以很好地提取收据上的总数,但似乎不适用于日期,因为它打印为空。 我在这里缺少什么让它工作?
这是我的代码:
from PIL import Image
import pytesseract
img = Image.open('Rec.jpg')
print(pytesseract.image_to_string(img, config='-psm 6'))
【问题讨论】:
标签: tesseract python-tesseract