TensorFlow Lite PoseNet Android Demo
This is an app that continuously detects the body parts in the frames seen by your device's camera. These instructions walk you through building and running the demo on an Android device. Camera captures are discarded immediately after use, nothing is stored or saved.
Build the demo using Android Studio
If you don't have it already, install Android Studio 3.2 or later, following the instructions on the website.
Android device and Android development environment with minimum API 21.
Open Android Studio, and from the
Open an existing Android Studio project.
Open File or Projectwindow that appears, navigate to and select the
tensorflow-lite/examples/posenet/androiddirectory from wherever you cloned the TensorFlow Lite sample GitHub repo. Click
If it asks you to do a
Gradle Sync, click
You may also need to install various platforms and tools, if you get errors like
Failed to find target with hash string 'android-21'and similar. Click the
Runbutton (the green arrow) or select
Run 'android'from the top menu. You may need to rebuild the project using
If it asks you to use
Instant Run, click
Proceed Without Instant Run.
Also, you need to have an Android device plugged in with developer options enabled at this point. See here for more details on setting up developer devices.
Downloading, extraction and placement in assets folder has been managed
If you explicitly want to download the model, you can download it from here.
Please do not delete the assets folder content. If you explicitly deleted the
files, then please choose
Rebuild from menu to re-download the
deleted model files into assets folder.