Skip to content Skip to sidebar Skip to footer

Google Vision Facetracker Shows A Black Screen

Can someone try Google VisionAPI FaceTracker and see if it works? Here's the official page. All I get when I try running it is a black screen (after fixing one error). I don't get

Solution 1:

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
  • (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: Demo of app running

The following could be helpful in diagnosing your issue:

  • 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 was a little trickier from the emulator because it uses the front camera.

enter image description here

Post a Comment for "Google Vision Facetracker Shows A Black Screen"