Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java tesseract error in linux "Unable to load library 'tesseract': libtesseract.so"

I am using tess4J ocr library in eclipse and is working fine in my windows. But when i want to run that java program in linux it is giving an error "Unable to load library 'tesseract': libtesseract.so: cannot open shared object file: No such file or directory".

I dont have any permissions on linux to install the tesseract or any other software . Just i can use the jar files and run the java program by calling the shell script.Please help me on this . As I am thinking my problem will be solved by getting libtesseract.so file or help me how to get libtesseract.so in windows so that i will use that in linux . Please help and thank in advance

like image 209
JM12 Avatar asked Oct 16 '25 13:10

JM12


1 Answers

It is enough to install Tesseract for Linux using command:

sudo apt-get install tesseract-ocr

now you can check tesseract version, using command:

tesseract -v

Please note, that for Tesseract 3.03 you can use Tess4j version 2.0. Another version may give you errors because of incompatibility.

You can get more info about different version compatibility in Change Log, or here.

like image 145
Yuliia Ashomok Avatar answered Oct 19 '25 04:10

Yuliia Ashomok