[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.
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 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.
Get started with AIML Kit brings Google's machine learning expertise to mobile developers in a powerful yet easy-to-use package through Firebase.
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”.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With