Google Vision FaceTracker显示黑屏 [英] Google Vision FaceTracker shows a black screen

查看:117
本文介绍了Google Vision FaceTracker显示黑屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以尝试 Google VisionAPI FaceTracker 看看是否它有效吗?

Can someone try Google VisionAPI FaceTracker and see if it works?

这是官方页面.

当我尝试运行它时,我得到的只是一个黑屏(修复了一个错误).我在日志中也没有任何错误.

All I get when I try running it is a black screen (after fixing one error). I don't get any errors in the logs either.

推荐答案

该示例对我有用.需要特别注意的是:您无需修改​​示例即可使其正常工作,而应该工作.

The sample works for me. Of particular note: you should not need to modify the samples to make them work, they should just work.

因此,我还运行了如下的面部跟踪"示例:

As such, I also just ran the Face tracking sample as follows:

  • git clone https://github.com/googlesamples/android-vision
  • (安装Android Studio)
  • android-vision/visionSamples/FaceTracker导入Android Studio
  • 点击安装SDK 24的Android Studio事物/构建工具24
  • android-vision/visionSamples/FaceTracker文件夹./gradlew assemble
  • 使用Nexus 5X创建Google API虚拟android设备,并在创建设备时将其设置为摄像机
  • 启动设备
  • adb install -r ./app/build/outputs/apk/app-debug.apk
  • 打开应用程序,接受许可,将相机侧向翻转
  • git clone https://github.com/googlesamples/android-vision
  • (Install Android Studio)
  • Import android-vision/visionSamples/FaceTracker into Android Studio
  • Click the Android Studio things that install SDK 24 / build tools 24
  • From the android-vision/visionSamples/FaceTracker folder ./gradlew assemble
  • Create a Google API virtual android device with Nexus 5X, setting advanced to a camera when you create the device
  • Start your device
  • adb install -r ./app/build/outputs/apk/app-debug.apk
  • Open up app, accept permission, turn your camera sideways

应用看起来像这样:

App looks like this:

以下内容可能有助于诊断问题:

The following could be helpful in diagnosing your issue:

  • 您可以共享adb logcat的输出吗?
  • 您要在其上测试样本的设备是哪个Android版本?
  • 遇到检查权限"错误时如何解决?
  • 您要使用哪些SDK/构建工具(示例为0.24)?
  • Can you share the output from adb logcat?
  • What Android version is the device you're testing the sample on?
  • How are you resolving when encountering the "check permission" error?
  • What SDK / build tools are you building with (the sample is 0.24)?

在模拟器中,Googley Eyes有点棘手,因为它使用前置摄像头.

Googley Eyes was a little trickier from the emulator because it uses the front camera.

这篇关于Google Vision FaceTracker显示黑屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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