问题
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.
回答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:
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.
来源:https://stackoverflow.com/questions/43534783/google-vision-facetracker-shows-a-black-screen