This is a fork of piersy's BasicTesseractExampleGradle project that has been modifed so that it can be built with Maven rather than Gradle.
The included test BasicTesseractExampleTest
demonstrates how simple it is to use Tesseract OCR from Java.
Clone this repository, set the os.classifier
property (see below) and then run the following - if the test succeeds you should see the text "This is a lot of 12 point..." printed to the console.
$ mvn clean test
Important: you need to modify the value of the os.classifier
property in pom.xml
to match the operating system you are using:
<!-- Valid classifiers for javacpp-presets are android-arm, linux-ppc64le, linux-x86, macosx-x86_64 and windows-x86. -->
<os.classifier>macosx-x86_64</os.classifier>
By default it is set to macosx-x86_64
(as shown).