我也正在学习OCR,遇到同样的问题了。刚才我试着变更了工程路径就解决了(保证你的图片路径与pytesser相同),如下,请LZ参考Python 2.7.4 (default, Apr6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)] on win32Type "copyright", "credits" or "license()" for more information.>>> import os>>> os.chdir('C:\Python27\Lib\site-packages\pytesser')>>> from pytesser import *>>> image ...
朋友不知道你问题解决没有,我当时也是这个问题然后百度到这儿的。但是通过这些回答还是没有解决问题,网上找了一圈还是不行,没办法只有我自己找问题根源,最后我在pytesseract.py的20和21行看到了如下提示:# CHANGE THIS IF TESSERACT IS NOT IN YOUR PATH, OR IS NAMED DIFFERENTLYt...
WindowsError: [Error 2] The system cannot find the file specified at lineerror 2是指找不到指定的文件我估计你打开的文件 Image.open(r'C:\Documents and Settings\Administrator\1.tif')根本就不存在或者你把文件拷到...