【发布时间】:2014-07-24 17:51:52
【问题描述】:
当我使用 pytesser(用于 python 的带有 tesseract-ocr 的图像处理库)并运行时:
image= Image.open(ImagePath)
text = image_to_string(image)
print text
因此,我得到了 text,以及来自 tesseract 的这一行:
Tesseract Open Source OCR Engine v3.02 with Leptonica
我认为当image_to_string 函数运行时这条线会运行。
这确实阻塞了控制台中打印的输出。而且真的很烦人。有谁知道如何摆脱它?也许是 python 中的一行之类的?
【问题讨论】:
-
查看 pytesser 页面上的 comments on the README - 解决此问题的人发布了两种解决方法。
标签: python image-processing ocr tesseract python-tesseract