[英]Ml Kit text recognition not downloading model in Android
As the title says, I tried the demo app offered by Google and it keep showing a Toast with this message "Waiting for text recognition model to be downloaded", and I got this error in the console:正如标题所说,我尝试了 Google 提供的演示应用程序,它一直显示 Toast 消息“正在等待下载文本识别 model”,我在控制台中收到此错误:
"E/Vision: Error loading module com.google.android.gms.vision.ocr optional module true: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0." “E/Vision:错误加载模块 com.google.android.gms.vision.ocr 可选模块 true:com.google.android.gms.dynamite.DynamiteModule$LoadingException:找不到可接受的模块。本地版本为 0,远程版本为0。”
I tried many solutions but no one worked for me this is the solutions I tried:我尝试了很多解决方案,但没有人为我工作这是我尝试过的解决方案:
Update Google Play Services app.更新 Google Play 服务应用。
Adding this in ManifestFile:在 ManifestFile 中添加:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.******.***"
android:installLocation="auto">
<application>
...
<meta-data android:name="com.google.android.gms.vision.DEPENDENCIES" android:value="ocr"/>
</application>
Check Inte.net connection.检查 Internet.net 连接。
Check storage for free space.检查存储空间是否可用。
Clear Google Play Services data.清除 Google Play 服务数据。
Thanks in advance for any help.在此先感谢您的帮助。
20.42.14 should be a good version as of today.截至今天,20.42.14 应该是一个不错的版本。 Note that optional module download takes some time.
请注意,可选模块下载需要一些时间。 It is expected to see these logs in the initial launch of your app.
预计会在您的应用程序首次启动时看到这些日志。 Clearing Google Play Services data cleans all downloaded modules which may delete your module if it has already been downloaded.
清除 Google Play 服务数据会清除所有下载的模块,如果已经下载,则可能会删除您的模块。 Have you tried to reboot your phone to see if it works?
您是否尝试过重新启动手机以查看它是否有效?
A bug report sent to mlkit-feedback@googlegroups.com would be helpful for us to diagnose this further.发送至 mlkit-feedback@googlegroups.com 的错误报告将有助于我们进一步诊断。 Thanks!
谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.