OSError: [Errno 2] No such file or directory using pytesser

前端 未结 7 2041
鱼传尺愫
鱼传尺愫 2020-12-16 05:50

This is my problem, I want to use pytesser to get a picture\'s contents. My operating system is Mac OS 10.11, and I have already installed PIL, pytesser, tesseract-ocr engin

7条回答
  •  半阙折子戏
    2020-12-16 06:11

    Open file pytesseract.py.

    Mine is in /Users/yourUser/.virtualenvs/cv/lib/python2.7/site-packages/pytesseract/pytesseract.py

    Change tesseract_cmd = 'tesseract' to tesseract_cmd = '/usr/local/bin/tesseract'

提交回复
热议问题