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

前端 未结 7 2047
鱼传尺愫
鱼传尺愫 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:06

    I run into the same problem twice, for both MacOS and Ubuntu. This worked with me. Hoping it can help.

    First, open Terminal, then:

    • Ubuntu: run "sudo apt-get install tesseract-ocr"
    • MacOS: run "brew install tesseract". If you can not use "brew", run this command first then try again: "ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

提交回复
热议问题