2

我正在尝试测试 google mobile vision api,用于人脸检测,所以我从GitHub mobile vision的演示开始。我尝试了这两个应用程序,FaceTracker 和 photo-demo,下载本地人脸检测器库也出现了同样的问题。

对于 Nexus 5x,Galaxy S6 Edge 不工作,Galaxy S4,Galaxy Alpha 工作。

当不工作时,我在日志中看到的是:

对于应用程序:

05-19 17:52:07.301 14909-14909/com.google.android.gms.samples.vision.face.photo W/System: ClassLoader referenced unknown path: /data/app/com.google.android.gms.samples.vision.face.photo-1/lib/arm64
05-19 17:52:07.725 14909-14909/com.google.android.gms.samples.vision.face.photo W/System: ClassLoader referenced unknown path: /data/app/com.google.android.gms.samples.vision.face.photo-1/lib/arm64
05-19 17:52:08.043 14909-14909/com.google.android.gms.samples.vision.face.photo D/ChimeraCfgMgr: Reading stored module config
05-19 17:52:08.068 14909-14909/com.google.android.gms.samples.vision.face.photo W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000001/n/arm64-v8a
05-19 17:52:08.077 14909-14909/com.google.android.gms.samples.vision.face.photo D/ChimeraFileApk: Primary ABI of requesting process is arm64-v8a
05-19 17:52:08.079 14909-14909/com.google.android.gms.samples.vision.face.photo D/ChimeraFileApk: Classloading successful. Optimized code found.
05-19 17:52:08.105 14909-14909/com.google.android.gms.samples.vision.face.photo I/FaceDetectorCreatorImpl: Requesting download for vision face detector
05-19 17:52:08.107 14909-14909/com.google.android.gms.samples.vision.face.photo W/FaceDetectorHandle: Native face detector not yet available.  Reverting to no-op detection.
05-19 17:52:08.253 14909-14909/com.google.android.gms.samples.vision.face.photo W/PhotoViewerActivity: Face detector dependencies are not yet available.
05-19 17:52:08.263 14909-14941/com.google.android.gms.samples.vision.face.photo D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
05-19 17:52:08.312 14909-14941/com.google.android.gms.samples.vision.face.photo I/Adreno: QUALCOMM build                   : 63c06b2, I8366cd0437
                                                                                          Build Date                       : 12/06/15
                                                                                          OpenGL ES Shader Compiler Version: XE031.05.13.02
                                                                                          Local Branch                     : mybranch17112971
                                                                                          Remote Branch                    : quic/LA.BF64.1.2.9_v2
                                                                                          Remote Branch                    : NONE
                                                                                          Reconstruct Branch               : NOTHING
05-19 17:52:08.317 14909-14941/com.google.android.gms.samples.vision.face.photo I/OpenGLRenderer: Initialized EGL, version 1.4

在对日志进行一些挖掘之后,通过对我看到的标签应用视觉过滤器:

05-19 17:52:08.124 10421-10526/? I/Vision: Attempting to open download_details.json in com.google.android.gms.vision
05-19 17:52:08.125 10421-10526/? W/Vision: Failed to open download_details.json in com.google.android.gms.vision: android.content.pm.PackageManager$NameNotFoundException: com.google.android.gms.vision
05-19 17:52:08.126 10421-10526/? I/Vision: Attempting to open download_details.json in com.google.android.gms.policy_ccocr_vision
05-19 17:52:08.127 10421-10526/? W/Vision: Failed to open download_details.json in com.google.android.gms.policy_ccocr_vision: android.content.pm.PackageManager$NameNotFoundException: com.google.android.gms.policy_ccocr_vision
05-19 17:52:08.127 10421-10526/? W/Vision: Reading download details from hard-coded Java
05-19 17:52:08.443 10421-10526/? E/Vision: Download Failed: Status{statusCode=Download errored: The download was configured incorrectly., resolution=null}

类似的问题:

  1. 未找到 Google Vision 条码库
  2. FaceDetectorHandle﹕本机人脸检测器尚不可用。恢复到无操作检测

尝试了释放空间,清除缓存的解决方案,没有结果。

下一步我能做什么?是否可以手动下载库?有没有人清楚地表明为什么图书馆没有下载?

编辑

因此,Mobile Vision api https://github.com/googlesamples/android-vision/issues/98似乎存在问题。希望开发人员尽快提出解决方案。

编辑

该问题已通过更新播放服务库得到解决。

4

2 回答 2

0

我的问题是文本(TextRecognizer)没有面,问题是存储,我有 300MB 的免费空间,但根据这个链接它需要我手机的 10%

何时广播意图 ACTION_DEVICE_STORAGE_LOW?

于 2017-04-05T11:00:55.123 回答
0

根据 Google Play Services v9.0 的发行说明,该服务存在一个错误并被禁用。

在 v9.2 版本中,它再次启用。查看发行说明: https ://developers.google.com/vision/release-notes#bug_fixes

于 2016-06-29T06:18:35.247 回答