【发布时间】:2021-06-10 12:02:44
【问题描述】:
我正在使用 pytesseract v5.0,我正在使用 OpenCV 旋转图像,然后将其传递给 pytesseract.image_to_osd()。有一些图像可以与 image_to_osd 一起使用,但其他图像不能,并且程序给了我以下错误: TesseractError: (1, 'Tesseract Open Source OCR Engine v5.0.0-alpha.20201127 with Leptonica Warning: Invalid resolution 0 dpi.Using 70 instead. Estimating resolution as 179 Warning. Invalid resolution 0 dpi. 改用 70。字符太少。处理过程中跳过此页面错误。') 我正在使用 python 3.9.5。
请分享解决此问题的解决方案/示例代码。
【问题讨论】:
标签: ocr python-tesseract