from PIL import Image
from pytesser import *
image_file = 'D:\plate.jpg'
im = Image.open(image_file)
text = image_to_string(im)
text = image_file_to_string(image_file)
text = image_file_to_string(image_file, graceful_errors=True)
print "=====output=======\n"
print text
我错了
^{pr2}$尽管我已经正确地安装了安娜康达和枕头screenshot of package installed
你发布的代码没有错误。从错误消息来看,错误似乎在模块
pytesser.py
中,您可能使用Image
(在第6行:-)而不导入它。在相关问题 更多 >
编程相关推荐