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

前端 未结 7 2044
鱼传尺愫
鱼传尺愫 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 05:59

    Luckily, I solved this one.

    At first, I run the command

    pip install pytesseract
    

    to install the package.

    But I get the error message of 'No such file or directory using pytesser'.

    Then I read this link: image_to_string doesn't work in Mac So, just run the following script:

    brew link libtiff 
    brew link libpng 
    brew link jpeg
    brew install tesseract
    

    Worked for me ~

提交回复
热议问题