解决tesseract使用时报错error while loading shared libraries: xxx.so
tesseract
tesseract-ocr/tesseract: 是一个开源的光学字符识别(OCR)引擎,适用于从图像中提取和识别文本。特点是可以识别多种语言,具有较高的识别准确率,并且支持命令行和API调用。
项目地址:https://gitcode.com/gh_mirrors/te/tesseract
免费下载资源
·
使用tesseract的时候提示如下报错:
tesseract: error while loading shared libraries: libtesseract.so.3: cannot open shared object file: No such file or directory
参考博客的做法,首先在/usr/local/lib目录下查找这个文件,果然查到了!说明我们的tesseract在安装的时候是没有缺失这个文件的:
下面查看路径是否添加到环境:
vim /etc/ld.so.conf
看到这个文件里已经存在路径/usr/local/lib。但仍报这个错误。
原因是写入了路径但是没有更新,使用ldconfig
更新一下就可以了√
GitHub 加速计划 / te / tesseract
60.1 K
9.29 K
下载
tesseract-ocr/tesseract: 是一个开源的光学字符识别(OCR)引擎,适用于从图像中提取和识别文本。特点是可以识别多种语言,具有较高的识别准确率,并且支持命令行和API调用。
最近提交(Master分支:21 天前 )
bc490ea7
Don't check for a directory, because a symbolic link is also allowed.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2 个月前
2991d36a - 2 个月前
更多推荐
已为社区贡献5条内容
所有评论(0)