best OCR (Optical character recognition) example in android
Like you I also faced many problems implementing OCR in Android, but after much Googling I found the solution, and it surely is the best example of OCR.
Let me explain using step-by-step guidance.
First, download the source code from https://github.com/rmtheis/tess-two.
Import all three projects. After importing you will get an error.
To solve the error you have to create a res
folder in the tess-two project
First, just create res folder in tess-two by tess-two->RightClick->new Folder->Name it "res"
After doing this in all three project the error should be gone.
Now download the source code from https://github.com/rmtheis/android-ocr, here you will get best example.
Now you just need to import it into your workspace, but first you have to download android-ndk from this site:
http://developer.android.com/tools/sdk/ndk/index.html i have windows 7 - 32 bit PC so I have download http://dl.google.com/android/ndk/android-ndk-r9-windows-x86.zip this file
Now extract it suppose I have extract it into E:\Software\android-ndk-r9 so I will set this path on Environment Variable
Right Click on MyComputer->Property->Advance-System-Settings->Advance->Environment Variable-> find PATH on second below Box and set like path like below picture
done it
Now open cmd and go to on D:\Android Workspace\tess-two
like below
If you have successfully set up environment variable of NDK then just type ndk-build just like above picture than enter you will not get any kind of error and all file will be compiled successfully:
Now download other source code also from https://github.com/rmtheis/tess-two , and extract and import it and give it name OCRTest, like in my PC which is in D:\Android Workspace\OCRTest
Import test-two in this and run OCRTest and run it; you will get the best example of OCR.
Optical Character Recognition Android with OpenCV
You can take a look at JavaCV which a java interface to OpenCV
You can check something like Tesseract Android Tools (very decent): http://code.google.com/p/tesseract-android-tools/
Here is a heads up for a problem we all run into at the beginning when using it: Bytes Per Pixel value for byte representation of image in Android (if you are using the camera ofc)
What are recommended ocr library's in android?
Some paid and free library's available ,
1) Google vision API (paid)
2) http://www.abbyy.com/mobileocr/android (paid service)
3) https://github.com/tesseract-ocr (free)
digit detection from the image in android
There are many OCR for Android
check there links
- https://github.com/rmtheis/android-ocr
- https://github.com/GautamGupta/Simple-Android-OCR
- http://www.abbyy.com/mobileocr/android/
- best OCR (Optical character recognition) example in android
Related Topics
Manipulating Data on Webs in Android
How to Show Toast in Asynctask in Doinbackground
Can the Android Emulator Record and Play Back Audio Using Pc Hardware
Android App Enable Nfc Only for One Activity
Intent Does Not Set the Camera Parameters
Buttons Not Visible on the Application. What's Wrong
How to Import a Native Library (.So File) into Eclipse
Android How to Replace the Deprecated Tabhost
Android: How to Track Down the Origin of a Inflateexception
Passing Bitmap Between Two Activities
Unzip a Zipped File on Sd Card in Android Application
Android Mediarecorder - "Start Failed: -19"
How to Get Contacts from Native Phonebook in Android
Users Does Not Define No Argument Constructor
Android Custom View Group Delegate Addview
Initiate a Phone Call on Android with Special Character #