0

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 any errors in the logs either.

Community
  • 1
  • 1
fraiser
  • 929
  • 12
  • 28

1 Answers1

0

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

class
  • 8,621
  • 29
  • 30
  • 1
    Thank you! I was importing the entire project (Android Vision) from Github, and for some reason it was giving me weird errors, so I just copied all the files one by one, and that gave me the permission error that I had to fix. I just tried what you did and it works perfectly :) – fraiser Apr 21 '17 at 21:14