6

I have followed the setup guide for the Firebase ML Kit on Android and created a simple app that can recognize text on bitmap images, using the on-device text recognizer. It works pretty well out of the box, but there is one case where it doesn't seem to work: recognizing single-digit numbers.

In this image it recognizes all the numbers with more than one digit, but none of the single-digit numbers.

enter image description here

When I debug the returned FirebaseVisionText object, I see 12, 10, 45%, 10 and 83%, but not the 6, 2, 0, 0, 0 and 2.

I'm using the ocr model (defined in the manifest):

 <meta-data
        android:name="com.google.firebase.ml.vision.DEPENDENCIES"
        android:value="ocr" />

Is there any other model or some configuration I can change, to allow the text recognizer to detect the single-digit numbers?

Daniel
  • 924
  • 1
  • 14
  • 31
  • I have the same issue with this format: XXX-XXX-X (it ignores most of the times -not always- the last dash and number) – Kaizie Apr 15 '19 at 12:31
  • Did you find a way to go ahead ? – Code_Life Jun 02 '19 at 07:09
  • @Kaizie : did you found a way to solve this problem – Code_Life Jun 02 '19 at 07:09
  • Nope... 95% of the times it will not see the last digit if it is only one digit. I can understand that when you scan just 1 digit it may not know you are trying to find a digit, but when i scan a full bunch of numbers, and it just ignores the last one... it is very annoying. – Kaizie Jun 03 '19 at 08:12

0 Answers0