Tesseract OCR Android on Windows

I read all the questions on forums and blogs, but I still have a problem. First, I marked tess-two as a library and my project using tess-two as a library. I downloaded Android-NDK and from my project properties I clicked "Builders" and then "new" - "Program", then I selected ndk ndk-build file. By the way, my project is the project of Gautam Gupta. He gave the project. Link: https://github.com/GautamGupta/Simple-Android-OCR . When I run this project on my phone, the application launches and captures the photo, but when I click the "Save" button, the application gives an error below. http://t1307.hizliresim.com/1c/l/qg0rl.png

+3
android windows android-ndk ocr tesseract
Jul 18 '13 at 11:31
source share
1 answer

It seems that you only need to download TessTwo , make sure that you have correctly set the environment variables (ANT_HOME, ANDROID_HOME and ANDROID_NDK) to these points where you have Ant and Android SDK.

This is then a matter of building a project, following the TessTwo guidelines. To set up a library project that you can import.

Do not forget that command lines must be executed in CygWin. After the library project is built, you must have the correct .so files in libs / *. To really use them, you can start with this link .




@Burak: I solved my problem. For Windows; Write the codes below for Cygwin

a.cd <project-path'i>/tess-two b.export TESSERACT_PATH=${PWD}/external/tesseract-3.01 c.export LEPTONICA_PATH=${PWD}/external/leptonica-1.68 d.export LIBJPEG_PATH=${PWD}/external/libjpeg e./cygdrive/<ndk-directory>/ndk-build 

Enter the codes below in CMD

 f.android update project --target 1 --path . g. ant release 

Do not forget about the "." in step f.

+4
Jul 18 '13 at 13:14
source share



All Articles