PoseNet is a vision model that can be used to estimate the pose of a person in an image or video by estimating where key body joints are.
Android and iOS end-to-end tutorials are coming soon. In the meantime, if you want to experiment this on a web browser, check out the TensorFlow.js GitHub repository.
Example applications and guides
There is a TensorFlow Lite sample application that demonstrates the PoseNet model on Android.
How it works
Pose estimation refers to computer vision techniques that detect human figures in images and videos, so that one could determine, for example, where someone’s elbow shows up in an image.
To be clear, this technology is not recognizing who is in an image. The algorithm is simply estimating where key body joints are.
The key points detected are indexed by "Part ID", with a confidence score between 0.0 and 1.0, 1.0 being the highest.
How it performs
Performance varies based on your device and output stride (heatmaps and offset vectors). The PoseNet model is image size invariant, which means it can predict pose positions in the same scale as the original image regardless of whether the image is downscaled. This means PoseNet can be configured to have a higher accuracy at the expense of performance.
The output stride determines how much we’re scaling down the output relative to the input image size. It affects the size of the layers and the model outputs. The higher the output stride, the smaller the resolution of layers in the network and the outputs, and correspondingly their accuracy. In this implementation, the output stride can have values of 8, 16, or 32. In other words, an output stride of 32 will result in the fastest performance but lowest accuracy, while 8 will result in the highest accuracy but slowest performance. We recommend starting with 16.
The following image shows how the output stride determines how much we’re scaling down the output relative to the input image size. A higher output stride is faster but results in lower accuracy.
Read more about pose estimation
- Blog post: Real-time Human Pose Estimation in the Browser with TensorFlow.js
- TF.js GitHub: Pose Detection in the Browser: PoseNet Model
- Blog post: Track human poses in real-time on Android with TensorFlow Lite