我以前在Raspbian 中为dexter 行业的机器人pytesseract
做一些文本识别。
如屏幕截图tesseract
所示,我已经使用.sudo apt-get tesseract-ocr
tesseract-ocr
版本_
>>> tesseract 3.04.01
libgif 5.1.4 : libjpeg 6b (libjpeg-turbo 1.5.1) : libpng 1.6.28 : libtiff 4.0.8 : zlib 1.2.8 : libwebp 0.5.2 : libopenjp2 2.1.2
但pytesseract
不python3
承认。并不断获得
Traceback (most recent call last):
File "textRecognition.py", line 1, in <module>
import pytesseract
File "/home/pi/.local/lib/python3.5/site-packages/pytesseract/__init__.py", line 2, in <module>
from .pytesseract import ALTONotSupported
File "/home/pi/.local/lib/python3.5/site-packages/pytesseract/pytesseract.py", line 89
f"{tesseract_cmd} is not installed or it's not in your PATH."