且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

pytesseract,WindowsError:[错误2]系统找不到指定的文件

更新时间:2023-01-25 23:21:59

根据 PyPi信息,您有一个遗漏的缺点:

according to the PyPi information there is a perquisite that you are missing:


http://code.google.com/p/tesseract-ocr/
您必须能够以tesseract调用tesseract命令。如果这个
不是这种情况,例如因为tesseract不在你的PATH中,你将
必须更改'tesseract.py'顶部的tesseract_cmd变量。

Install google tesseract-ocr from http://code.google.com/p/tesseract-ocr/ . You must be able to invoke the tesseract command as "tesseract". If this isn't the case, for example because tesseract isn't in your PATH, you will have to change the "tesseract_cmd" variable at the top of 'tesseract.py'.

该链接将我重定向到 https://github.com/tesseract-ocr/tesseract

我很遗憾该软件包没有为您提供更多信息一旦你安装了基础 tesseract 命令,你就会错过这个,pytesseract应该可以正常工作:)

I'm frankly disappointed that the package doesn't give you a more informative message that you are missing this, anyway once you have installed the underlying tesseract command pytesseract should work correctly :)