Skip to content

heaton/tessdemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5bf98de · Dec 28, 2014

History

31 Commits
Jun 6, 2014
Jul 23, 2014
Dec 28, 2014
Dec 28, 2014
Dec 28, 2014
Jun 4, 2014
Dec 28, 2014
Dec 28, 2014
Dec 28, 2014
Jun 4, 2014
Dec 28, 2014
Dec 28, 2014

Repository files navigation

Tesseract Demo

What is it?

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.

Getting Started

The recommended approach to setup your enviroment is using docker.

With Docker

If you have already installed docker, skip to the next step. If not, checkout docker to install.

Install

Build a docker image by running

make pull
make

Once this completes, you can check your install by running

./build
./test

Without Docker

See dependencies in Dockerfile, then try to install them on your local machine.

Install Tesseract

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

Windows:

Install Visual C++ Redistributable for VS2012 or Visual C++ Redistributable for VS2013. Install EXE File

Maybe also need to install Leptonica.

About

A demo for Tesseract in Java with JNA

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages