问题描述
我尝试安装在Android上使用ML Kit识别图像中的文本",然后运行此应用程序,出现此错误:
I tried to install "Recognize Text in Images with ML Kit on Android" then I'm running this app, I got this error:
我等待了4到5个小时,但没有任何反应.
I waited for 4 or 5 hours with no response.
它出现在这一行:
要复制:
按照识别图像Codelab中的文本或运行示例应用代码并清除应用的缓存.
Follow the Recognize Text in Images Codelab or run the sample app code and clear your app's cache.
推荐答案
如果设备上的存储空间不足,则会发生这种情况.您可以尝试从设备清除Google Play服务的数据吗?
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" />
这将在从Play商店安装应用后预下载识别模型.
This will pre-download the recognition model upon app installation from Play Store.
这篇关于Google机器学习套件,在Android上使用ML Kit识别图像中的文本错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!