在python中找不到OCR工具

2024-10-01 11:25:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经从GitHub下载了玛雅EDMS电子文档管理系统,并使用Django服务器配置了该项目。我根据需要添加了所需的库。现在项目运行出错了

ocr.exceptions.OCRError: No OCR tool found

当我搜索这个错误时,我发现Pyocr查找安装在您系统上的OCR工具(Tesseract、Cuneiform等)并告诉您它找到了什么。在

然后,我尝试使用命令-->;pip install tesseract ocr来安装tesseract。在

我有这个错误

^{pr2}$

请帮我解决这个问题。提前谢谢。在


Tags: 项目djangono文档github服务器错误电子
1条回答
网友
1楼 · 发布于 2024-10-01 11:25:09

使用apt get命令在操作系统上安装Tesseract。您使用的命令(PIP)是用来安装Python包的,这就是错误的原因。在

供参考:http://docs.mayan-edms.com/en/stable/topics/deploying.html#deploying

If using a Debian or Ubuntu based Linux distribution, get the executable requirements using:

sudo apt-get install g++ gcc ghostscript gnupg1 graphviz libjpeg-dev libmagic1 \
libpq-dev libpng-dev libreoffice libtiff-dev poppler-utils postgresql \
python-dev python-pip python-virtualenv redis-server sane-utils supervisor \
tesseract-ocr zlib1g-dev -y

相关问题 更多 >