简体   繁体   English

Ml Kit文本识别不下载Android中的model

[英]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.

相关问题 Firebase 机器学习套件 - Firebase ML Kit firebase ML kit 美学照片质量 - firebase ML kit Aesthetic photo Quality 任何人都知道如何使用 flutter 中的 ml 套件检测数字 - anyone know how to detect numbers with ml kit in flutter 视觉图像处理返回 nil ML Kit Firebase - Vision image process returns nil ML Kit Firebase MLKit 纵向文本识别 - MLKit Text Recognition in portrait 部署到顶点 ai 时如何将阈值传递给 BigQuery ML model - how to pass threshold to BigQuery ML model when deployed to vertex ai 使用 AWS Amplify 下载多个文件 Android - Downloading multiple files using AWS Amplify for Android 文本分类到类别中 - 在 BigQuery ML 或 Python (Google Colab) 中是否有适用于此的可用模型? - Text Classification into Categories - is there any available models which suitable for this in BigQuery ML or Python (Google Colab)? 将 AutoML Tables 生成的模型导入 BigQuery ML 会引发错误“Op type not registered 'DecodeProtoSparseV2'” - Importing model generated by AutoML Tables to BigQuery ML raises error "Op type not registered 'DecodeProtoSparseV2'" 从Android中的firebase下载多个文件时如何管理memory - How to manage memory when downloading multiple files from firebase in Android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM