我将尝试将文本图像转换为文本。 我正在使用Python中的
pytesser
进行此操作,我已经安装了tesseract,但是运行以下代码时出现问题:from pytesser import *
im = Image.open('phototest.tif')
text = image_to_string(im)
print text
I get the following error:
Tesseract Open Source OCR Engine with Leptonica
Please call SetImage before attempting recognition.
什么都没有被打印出来,也没有任何结果。对上述问题有任何帮助吗?