报错:

pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your path

解决方案:

    1.找到python的安装路径下的pytesseract:   例如我的是   E:\Python3.7.1\Lib\site-packages\pytesseract

pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your path

2.用文本编辑器打开,查找tesseract_cmd

将原来的   tesseract_cmd = 'tesseract' 改为:  tesseract_cmd = 'OCR的安装路径下的tessract.exe'

例如我的是   tesseract_cmd = 'C:\Program Files\Tesseract-OCR\\tesseract.exe'

注意有的地方需要转义   例如 \\tesseract.exe

pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your path

3.运行:不报错了

pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your path

相关文章:

  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-04
  • 2021-08-06
  • 2021-10-28
  • 2022-12-23
  • 2021-08-06
相关资源
相似解决方案