我只使用PIL,然后它就正常工作了,当我使用pytesser时,它就不能正常工作了。我能为它做些什么呢?在
from PIL import Image
from pytesser import *
image_file = Image.open("vote.jpg")
im = Image.open(image_file)
text = image_to_string(im)
print text
Traceback (most recent call last):
File "C:/Users/Tanvir/Desktop/py thon hand/hala.py", line 4, in <module>
image_file = Image.open("vote.jpg")
File "C:\Pythons27\lib\site-packages\PIL\Image.py", line 2286, in open
% (filename if filename else fp))
IOError: cannot identify image file 'vote.jpg'
我找到了这个解决方案。这是与PIL的问题,所以首先我必须卸载这个PIL模块,然后再次安装它和工作做的每件事都是好的。在
相关问题 更多 >
编程相关推荐