2

Is there any way to scan numbers by the camera in Android? I found a barcode scanner libraries but they are not what I need.

sample screenshot

enter image description here

Rohit5k2
  • 17,948
  • 8
  • 45
  • 57
  • 1
    use google API to convert image to words. https://cloud.google.com/vision/docs/ocr – Randyka Yudhistira Mar 19 '18 at 06:39
  • What you are looking for is called an [OCR](https://en.wikipedia.org/wiki/Optical_character_recognition) library. Questions asking for libraries are [off-topic](https://stackoverflow.com/questions/4836136/android-ocr-library) on stackoverflow, so if you don't get an answer here, do a search for ocr Android. – Axel Mar 19 '18 at 06:39

1 Answers1

1

You should be able to use Text Recognition API Overview to extract the text from the image. Then you can parse the text to extract the numbers.

Here Android Vision team is also providing a codelab to get us started.

dan
  • 13,132
  • 3
  • 38
  • 49