googlesamples / android-vision

Deprecated: The Mobile Vision API is now a part of ML Kit: Check out this repo:
https://github.com/firebase/quickstart-android/tree/master/mlkit
Apache License 2.0
2.92k stars 1.73k forks source link

Hardly to detect MRZ text #110

Open MkMehdi opened 8 years ago

MkMehdi commented 8 years ago

Hello;

First thank you so much for this brilliant library :+1:

Well my issue is when I want try detect MRZ text gives me a wrong result .. is there any configuration can do for get better result !

Thank you :))

pchx-zz commented 8 years ago

Would you mind clarifying what you mean by MRZ text?

Note that the Text Recognition API only supports languages that use Latin characters. See our site for details:

https://developers.google.com/vision/text-overview

MkMehdi commented 8 years ago

Thank you for you reply :+1: Well to be clear text like that : I<UTOSTEVENSON<<PETER<<<<<<<<<<<<<<< D231458907UTO3407127M9507122<<<<<<<2 the alphabets detect fine but the difficult with "<" sometimes change it to "s" but not all characters... Is there any configuration can do to get the result more clear ?

Regards;

bdhobare commented 8 years ago

Hello.Does this library read MRZ lines? I am also interested in reading MRZ lines

pchx-zz commented 8 years ago

The Text API isn't specifically optimized for reading MRZ text, but is certainly capable of reading any Latin text (though it may be less accurate in those cases).

parulsngh commented 5 years ago

Can anyone suggest a better option to read MRZ, text api is not helping out with MRZ.

ajinkya933 commented 5 years ago

Try OCRB.traineddata. Usage: tesseract input.jpg output.txt -l OCRB

parulsngh commented 5 years ago

Have tried the tess-two, its working fine but some time it suddenly stops reading text from image and again starts reading by its own. Didn't figured out the reason for same.

ajinkya933 commented 5 years ago

Tesseract needs proper input image try changing the image input by applying morphological transforms/ text localization algorithms and then run it through tesseract

ajinkya933 commented 5 years ago

close #110