Google Machine Learning Kit, Recognize Text in Images with ML Kit on Android error [closed]

我是研究僧i 提交于 2019-12-11 19:59:52

问题


I tried to install "Recognize Text in Images with ML Kit on Android" then I'm running this app, I got this error:

com.google.firebase.codelab.mlkit W/System.err: com.google.firebase.ml.common.FirebaseMLException: Waiting for the text recognition model to be downloaded

I waited for 4 or 5 hours with no response.

It showed up on this line:

To reproduce:

Follow the Recognize Text in Images Codelab or run the sample app code and clear your app's cache.


回答1:


This can happen if the storage on the device is not sufficient. Can you try clearing the data for Google Play Services from the device?

Post development, to avoid this problem in production, you can use this tag in your manifest:

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

This will pre-download the recognition model upon app installation from Play Store.



来源:https://stackoverflow.com/questions/50327229/google-machine-learning-kit-recognize-text-in-images-with-ml-kit-on-android-err

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!