raspberry-pi3 - Tesseract 未安装在您的路径中 - Raspbian for Robots (dexter)
问题描述
我以前在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."
解决方案
推荐阅读
- python - 是否有 Python 函数可以随机拆分 deepchem.data.NumpyDataset?
- java - 如何在 Java/Android 中将其转换为 Json?
- javascript - JavaScript 试图为 html 做一个时钟,不知道是什么坏了
- php - mysqli 的插入查询似乎不起作用,我不知道为什么
- html - 垂直滚动捕捉部分中的水平滚动捕捉部分,由于 ul 和 div 的缘故,上面有空白空间
- bash - 从 shell 输出中获取 Vaule
- c - 当我尝试释放动态分配的指针数组时,Valgrind 抛出无效的 free()
- regex - Pycharm正则表达式反向引用替换错误
- ruby - 尝试构建一个将 YouTube 缩略图添加到链接的 Jekyll 插件
- r - 使列数加倍^2