【问题标题】:Android vision - Face detector dependencies are not yet availableAndroid 视觉 - 人脸检测器依赖项尚不可用
【发布时间】:2016-09-16 14:37:32
【问题描述】:

我正在尝试测试 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 barcode library not found
  2. FaceDetectorHandle﹕ Native face detector not yet available. Reverting to no-op detection

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

接下来我能做什么?是否可以手动下载库?有没有人明确指出为什么图书馆没有下载?

编辑

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

编辑

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

【问题讨论】:

  • 您是否将元数据标签添加到您的清单中?
  • 是的。它已经带有
  • 你查看Release Notes for May 2016 - v.9.0了吗?根据该文件,“Mobile Vision 所需的一项服务现在由于该服务中的严重错误而被禁用。这将阻止尚未使用面部或条形码检测的用户使用这些功能。我们不建议添加新的 Mobile Vision在解决此问题之前为您的应用添加功能。”用户 FaceDetector.isOperational() 在使用面部或条形码检测器之前确认检测器准备就绪。我希望这会有所帮助。
  • 所以它基本上说的是,如果您有播放服务,v.9.0 将无法正常工作。有什么消息他们什么时候能解决这个问题?
  • 在此处查看此 GitHub 问题:github.com/googlesamples/android-vision/issues/98

标签: android google-play-services google-vision


【解决方案1】:

我的问题是文本 (TextRecognizer) 没有显示,问题是存储空间,我有 300MB 可用空间,但根据此链接需要 10% 的手机容量

When is the intent ACTION_DEVICE_STORAGE_LOW broadcasted?

【讨论】:

    【解决方案2】:

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

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

    【讨论】:

      猜你喜欢
      • 2017-12-31
      • 2016-07-03
      • 2015-11-10
      • 2019-02-27
      • 2013-09-24
      • 2018-08-15
      • 2016-03-10
      • 2019-11-18
      • 1970-01-01
      相关资源
      最近更新 更多