A demo for Tesseract in Java with JNA (Tess4J).
This demo is attend to test Tess4J on several OS like MacOS, Ubuntu and Windows.
Tesseract: an open source OCR engine. More details, please see its web site.
Image filters: Check here to see more information.
Thanks to all contributors of these open source projects.
The recommended approach to setup your enviroment is using docker.
If you have already installed docker, skip to the next step. If not, checkout docker to install.
Build a docker image by running
make pull
make
Once this completes, you can check your install by running
./build
./test
See dependencies in Dockerfile, then try to install them on your local machine.
Change the java version in pom.xml to fit your local machine.
Check your install by running
mvn clean install
java -cp "lib/jai-imageio.jar:lib/tess4j.jar:target/tessdemo/WEB-INF/lib/jna-4.1.0.jar:target/classes" me.heaton.ocr.TessExample
Install Visual C++ Redistributable for VS2012 or Visual C++ Redistributable for VS2013. Install EXE File
Maybe also need to install Leptonica.