Google机器学习套件,使用Android上的ML套件识别图像中的文字错误

时间:2018-05-14 09:36:32

标签: java android firebase firebase-mlkit

我尝试在Android上使用ML Kit安装"识别图像中的文字"然后我运行这个应用程序,我收到了这个错误:

  

com.google.firebase.codelab.mlkit W / System.err:   com.google.firebase.ml.common.FirebaseMLException:等待   要下载的文本识别模型

我等了4或5个小时没有回应。

它出现在这条线上: error

重现:

关注Recognize Text in Images Codelabrun the sample app code并清除应用的缓存。

1 个答案:

答案 0 :(得分:1)

如果设备上的存储空间不足,可能会发生这种情况。您可以尝试从设备清除Google Play服务的数据吗?

开发后,为了避免生产中出现此问题,您可以在清单中使用此标记:

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

这将在Play商店安装应用程序时预先下载识别模型。