NuevoSapientum / tesseract-android-tools

Automatically exported from code.google.com/p/tesseract-android-tools
0 stars 0 forks source link

This project contains tools for compiling the Tesseract and Leptonica libraries for use on the Android platform. It contains an Eclipse Android library project that provides a Java API for accessing natively-compiled Tesseract and Leptonica APIs.

NOTE: You must download and extract source files for the Tesseract and Leptonica libraries prior to building this library.

To download the latest versions of these libraries and build this project, run the following commands in the terminal:

cd curl -O https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz curl -O http://leptonica.googlecode.com/files/leptonica-1.69.tar.gz tar -zxvf tesseract-ocr-3.02.02.tar.gz tar -zxvf leptonica-1.69.tar.gz rm -f tesseract-ocr-3.02.02.tar.gz rm -f leptonica-1.69.tar.gz mv tesseract-3.02.02 jni/com_googlecode_tesseract_android/src mv leptonica-1.69 jni/com_googlecode_leptonica_android/src ndk-build -j8 android update project --path . ant debug

To download the English language files for Tesseract and copy them to your device's external storage, run the following commands in the terminal:

cd curl -O http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.eng.tar.gz tar -zxvf tesseract-ocr-3.02.eng.tar.gz rm -f tesseract-ocr-3.02.eng.tar.gz mkdir data mv tesseract-ocr data/tesseract adb push data/ /sdcard/ adb shell sync