Google ML Kit:等待文本识别模型下载 [英] Google ML Kit: Waiting for the text recognition model to be downloaded

查看:455
本文介绍了Google ML Kit:等待文本识别模型下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[mlkit]

我正在从适用于Android的Google机器学习套件中实现设备上的文字识别".我遵循了本指南,但是每次尝试检测我得到的文本例外 等待下载文本识别模型.请稍候."

I am implementing the "On-device text recognition" from the Google Machine Learning Kit for android. I followed this guide but every time try to detect text I get the exception "Waiting for the text recognition model to be downloaded. Please wait."

显然,等待无济于事,10秒钟后进行新检测也无济于事.

Obviously, waiting doesn't help, neither does making a new detection 10 seconds later.

我有元标记

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

在清单的应用标签中,该标签应在安装应用后预先下载识别模型.

in my manifest's app tag, which is supposed to pre-download the recognition model upon app installation.

编辑:我刚刚尝试了示例应用(文本识别/最终),它具有完全相同的问题.

Edit: I just tried the sample app(text-recognition/final) and it has the exact same issue.

我是否缺少某些内容,或者API是否存在错误?任何帮助将不胜感激.

Am I missing something or is there a bug with the API? Any help would be appreciated.

推荐答案

经过进一步调查,我们发现该问题仅在特定设备上发生,并且与其他ad mob异常同时发生.我尝试了以下方法,并且有效:

After further investigation, we found that the problem occurs only on a specific device and it coincided with other ad mob anomalies. I tried the following and it works:

设置->应用程序-> Google Play服务->存储->管理空间->清除所有数据

此后的第一个请求仍返回与以前相同的错误,但第二个请求成功.

The first request after that still returned the same error as before, but the second request succeeded.

这篇关于Google ML Kit:等待文本识别模型下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆