解决pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your path问题

解决方案:

  1. 找到python的安装路径下的pytesseract:   例如我的是  C:\develop\Python\Lib\site-packages\pytesseract
  2. .用文本编辑器打开,查找tesseract_cmd
  3. 将原来的   tesseract_cmd = 'tesseract' 改为:  tesseract_cmd = 'OCR的安装路径下的tessract.exe'

注意:有的地方需要转义 ,重新进入项目,运行即可

posted on 2019-12-04 20:11  LoaderMan  阅读(5585)  评论(0编辑  收藏  举报

导航