问题描述
我的MBP上运行了一段时间的tesseract和。今天,我开始将应用程序迁移到服务器,并开始在服务器上安装所有内容。在tomcat中运行Tess4J之前,我尝试运行一个简单的Java程序以确保一切正常。不是...
I've had tesseract and Tess4J running on my MBP for a while now. Today I started to migrate my app to the server and started installing everything on the server. Prior to running Tess4J in tomcat I tried to run a simple java program to make sure everything is fine and dandy. It's not...
- 我在centOS 64位服务器上
- 我已经安装了tesseract及其正常工作-
tesseract myimage.jpg mytext
产生数据
- I'm on a centOS 64bit server
- I've installed tesseract and its working fine -
tesseract myimage.jpg mytext
produces data
但是,运行使用Tess4j的简单类会产生以下错误:
However, running my simple class that useses Tess4j produces this error:
我到目前为止所做的事情
- 我已经运行过
sudo ldconfig
- 我正在搜索libtesseract.so,它在
/usr/local/lib/libtesseract.so
I've ran
sudo ldconfig
after installing tesseractI've search for libtesseract.so and its found in
/usr/local/lib/libtesseract.so
服务器上的文件夹包含以下文件:
Folder on server contains these files:
myimge.png
ghost4j-0.3.1.jar
jai_imageio.jar
jna.jar
maslab.jar
pngj.jar
tess4j.jar
TesseractExample.class
TesseractExample.java
tesseract -v产生:
tesseract -v produces:
tesseract -v
tesseract 3.02.02
leptonica-1.69
libjpeg 6b : libpng 1.2.49 : libtiff 3.9.4 : zlib 1.2.3
问题
如何使Tess4J知道libtesseract.so确实存在?
在此处输入代码
How can I make Tess4J aware that libtesseract.so does exist?
enter code here
推荐答案
我也遇到了这个问题。
在安装tesseract之后是否运行了以下命令:
Did you run the following after installing tesseract:
sudo ldconfig
为我解决了这个问题。
这篇关于无法加载库“ tesseract”:libtesseract.so:无法打开共享对象文件:无此类文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!