0

I am creating an app which takes the picture and recognize the text from it and provides it as the output. I am using mlkit from the firebase for this purpose. So far I am able to detect the text in English. Now I want it to detect the text in Hindi. Also, I am using on-device detection for detecting the text.

Can anyone guide me with this hurdle?

Any help will be appreciated.

Ben Weiss
  • 17,182
  • 6
  • 67
  • 87
divaPrajapati09
  • 170
  • 1
  • 12

1 Answers1

2

The Firebase overview of the text recognition API starts with this:

With ML Kit's text recognition APIs, you can recognize text in any Latin-based language (and more, with Cloud-based text recognition).

Since Hindi uses non Latin-based characters, it can't be recognized by ML Kit's on-device API. The Cloud-based API that is linked does support many more character sets, including Hindi.

So you'll either have to use the Cloud-based API, or train your own model to recognize Hindi text.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807