我正在尝试在使用 Raspbian 的树莓派上使用 pytesseract 进行 OCR
我已经阅读了关于这个主题的几个问题,但找不到有效的答案,他们通常说用 pip 安装 pytesseract,我做到了。
我的代码很简单:
import pytesseract
from PIL import Image
print(pytesseract.image_to_string(Image.open('test.jpg')))
Run Code Online (Sandbox Code Playgroud)
但它返回错误消息:“ImportError: No module named 'pytesseract'。
我已经安装了 tesseract-ocr(whereis tesseract-ocr命令返回 /usr/share/tesseract-ocr)
我已经使用pip install tesseract安装了 pytesseract (它返回成功安装的 Pillow-4.3.0 olefile-0.44 pytesseract-0.1.7 ...但是whereis pytesseract命令没有返回任何东西 --> 一个问题?)。
你知道我遇到的问题吗?