Read correct OCR data(having less accuracy) using Tesseract - android

Hi I have to develope an application to read OCR data .
After Googling I found that i can achieve it using Tesseract .
I got Tesseract source code from https://github.com/rmtheis/tess-two
I got its libraries by donloading NDK from http://dl.google.com/android/ndk/android-ndk-r9-windows-x86.zip
Now extracted 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
Now open cmd and go to on D:\Android Workspace\tess-two like below
Now downloaded 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
So I have compile both two projects successfully by taking help from best OCR (Optical character recognition) example in android
But my problem is when I click on capture button then it is producing wrong text .
If anyone had done this correctly then please help me...
Thanks a lot in advance....

Do check abbyy OCR its better accuracy than Tesseract
ABBYY offers its compact OCR Engine for Android
The latest Android smart phones have
* good auto focus cameras and
* more than 3 megapixel
* so they are perfectly equipped to take sharp pictures of documents that contain textual information.
Implementing OCR on Android based applications can turn the phone in a information/text capture device. The data can be
* processed directly on the phone, for example add a new contact to the address book
* sent to a sever to get more information
* sent to a text to speech engine
* sent to a translation service
New in V4 R5: Java Native Interface Wrapper (JNIWrapper) is included!
New in V4 R7: Barcode Recognition is included!
Pricing Details http://ocrsdk.com/plans-and-pricing/
for more --> http://www.abbyy-developers.eu/en:mobile-imaging-sdk:start

Related

How can I be output Android only numbers in OCR?

I am developing an Android OCR.
Using tess-two in the Android made ​​the OCR.
I have downloaded the 'traineddata' file. And it has succeeded in output in English . But I want to output a number.
In the Internet gave me inform the sentence 'tesseract image.tif outputbase nobatch digits' and it has advised me to insert the generated files.
But I did not understand what I'm saying .
Please tell me the easiest way.
You will need to set tessedit_char_whitelist variable, as follows:
baseApi.SetVariable("tessedit_char_whitelist", "0123456789");
See Android OCR detecting digits only using popular tessercat fork tess-two or extracting numbers from Bitmap in android using tess-two library.

How to recognize image which template is stored in the app

It needs recognize icons. For example, the app scans with with phone camera and recognizes one of the icons below and if it recognized then the app performs some action. It recognizes it by comparing with icons stored in the app.
Any libs, manuals, please.
And how to name this task if to search it: optical image recognition? (This is not OCR because recognizing image, not text, right?)
Thank you very much!
how to compare set of images in java using pixel based image comparision metric based on mean squared error?
Image Comparison Techniques with Java
Java library to compare image similarity
Google "java code to compare two images"
Also you can try perform and compare MD5 of both images, but i can't guarantee it will work(depends on your situation and if the files are the same).

How to recognize MICR codes in Android

I am trying to find the way to OCR the MICR codes from document. For that I used Tesseract library, Using this I got success in recognizing texts but when it comes to MICR it fails to recognize that.
Here is the sample MICR image which I want to read:
This is a MICR E-13B fonts (more info).
So is there any open source library to recognize MICR codes for Android? I found Leadtools SDK which provides this functionality but that is paid.
You can use Tesseract with mcr.traineddata language data file.
If you try to recognize stubs and cheques, you can give a look to MICR and OCR languages file from https://github.com/BigPino67/Tesseract-MICR-OCR

Android OCRSample using tesseract in Android

I want to make an application in that text is extracted and converted into another language like below app at time of camera is viewing like below screen shot of below app in play store CamDictionary
Below is the screen shot
Look in this camera is scanning and translating is done at real time can anybody suggest me example like this
I googled and find out one library
https://github.com/komamitsu/Android-OCRSample
but in that it suggested that
checkout http://code.google.com/p/tesseract-ocr/ and copy traineddata file(s) into "/mnt/sdcard/ocrsample/tessdata/" on your Android like this:
adb push ~/src/tesseract-ocr-read-only/tessdata/eng.traineddata /mnt/sdcard/ocrsample/tessdata/
I have searched out whole thing but there is no any file that should i have to put in /mnt/sdcard/ocrsample/tessdata/ can any body suggest me what is that file because i have checkout following link
svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-ocr-read-only
but it contain so many source code for windows app also and there is like more than 700 MB
i want just andorid files that should i have to put in SDCARD please any body help me
is there any other solution than also please suggest me

Convert I18n Iphone Files to Android

I have an iOS App localized (with Localizable.strings files).
I've built now an Android version. I understand the way the i18n is made on android but I would like to avoid redoing the i18n, as almost all the Strings have the same meaning between iOS and Android.
Are there any tools that will do this conversion, or at least speed up the process?
Edit:
Ideally I would like to find a method/tool that would do the following
Input:
'iOS Localizable.strings files-(en,fr,it,pt,etc)'
'res/values/strings.xml'
Output:
'res/values-en/strings.xml'
'res/values-fr/strings.xml'
'res/values-it/strings.xml'
'res/values-pt/strings.xml'
'res/values-etc/strings.xml'
There is a specialised service here: Loco.
There are threads here on SO which deal with conversation:
Are there any tools to convert an Iphone localized string file to a string resources file that can be used in Android?
Any tool to convert Android's XML localization to iPhone's .strings file?
Another possiblity would be to use an online translation service. These services accepts text not only in Android and iPhone but also in many other formats. Upload the android text and download the iPhone text. A list of available services can be found on SO, see Any collaborative tool/website to localize an Android app? Some of these services are commercial, but even these provide a 30days test period. But note that the main focus is on translation and not on conversation.
Here is some code that does that: https://github.com/wrapp/LocalizedStrings2Android
Put it in a jar and it is ready to use.
You can use this tool I created on JSFiddle:
https://jsfiddle.net/danielgindi/x9njj9gj/
[StackOverflow requires me to write some code here because of the JSFiddle link]
Just paste in your localization strings inside the correct box, and you'll get the converted version in the other boxes (Between Android, iOS, and JS).
This tries to preserve comments too.
Cheers!

Categories

Resources