Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google ML Kit: Waiting for the text recognition model to be downloaded

[mlkit]

I am implementing the "On-device text recognition" from the Google Machine Learning Kit for android. I followed this guide but every time try to detect text I get the exception "Waiting for the text recognition model to be downloaded. Please wait."

Obviously, waiting doesn't help, neither does making a new detection 10 seconds later.

I have the meta tag

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

in my manifest's app tag, which is supposed to pre-download the recognition model upon app installation.

Edit: I just tried the sample app(text-recognition/final) and it has the exact same issue.

Am I missing something or is there a bug with the API? Any help would be appreciated.

like image 952
M.Paunov Avatar asked May 14 '18 13:05

M.Paunov


People also ask

Is Google ml Kit offline?

All are powered by Google's best-in-class ML models and offered to you at no cost. ML Kit's APIs all run on-device, allowing for real-time use cases where you want to process a live camera stream for example. This also means that the functionality is available offline.

How does Google's ML kit work?

How does it work? ML Kit makes it easy to apply ML techniques in your apps by bringing Google's ML technologies, such as the Google Cloud Vision API, TensorFlow Lite, and the Android Neural Networks API together in a single SDK.

Is Google ml Kit an AI tool?

Get started with AIML Kit brings Google's machine learning expertise to mobile developers in a powerful yet easy-to-use package through Firebase.

How do you use Firebase ML?

Adding an appOpen android studio and start a new project with an empty activity. Then click on Tools -> Firebase. This will open the firebase assistant on the right hand panel. From the list of options, select ML Kit and click on “Use ML Kit to detect faces in images and video”.


1 Answers

After further investigation, we found that the problem occurs only on a specific device and it coincided with other ad mob anomalies. I tried the following and it works:

Settings->Apps->Google Play Services->Storage->Manage Space->Clear All Data

The first request after that still returned the same error as before, but the second request succeeded.

like image 53
M.Paunov Avatar answered Sep 17 '22 14:09

M.Paunov