Practical overview
When it fits
Use it when you want a Python PoseNet implementation with practical image and webcam demos, or a minimal benchmark for inference on image sets.
Who it is for
- Python developers who want to run multi-person pose estimation on image folders.
- Developers building webcam-based pose demonstrations with OpenCV.
- Researchers or developers who want a basic image-inference benchmark for PoseNet model variants.
Documented uses
- Estimate human keypoints and skeletons in images.
- Display detected poses over webcam frames.
- Benchmark inference over a set of images without rendering results.
Requirements & limits
The code repository is public and lists an Apache-2.0 license. The README describes model weights being downloaded and converted on first use.
- Requires Python 3.x and a recent TensorFlow version; the README's example environment uses Python 3.6 and TensorFlow GPU.
- Webcam capture requires pip-installed OpenCV according to the README; Anaconda's default OpenCV lacks the required video-capture support.
- The demo model defaults to depth multiplier 101 and supports ordinal IDs 0–3 or depth multipliers 50, 75, 100 and 101.
- The README describes this implementation as multi-pose only and says more rigorous verification against the original was a TODO.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Generate pose overlays for an image folder
Run the image demo on a folder and save output images with keypoints and skeletons overlaid.
Before you start
- Python 3.x and a recent TensorFlow version.
- An input folder of suitable images.
- A working project environment with the required dependencies; the README gives a Conda example with TensorFlow GPU, SciPy, PyYAML and Python 3.6.
Steps
Place input images in a folder available to the project.
Run the command below, changing the folder paths or model selection as needed.
python image_demo.py --model 101 --image_dir ./images --output_dir ./outputOn first use, allow the app to download and convert model weights from the TensorFlow.js version.
Expected outcome
The demo writes images with detected keypoints and skeleton overlays to the output folder.
Guide limitations
- The README describes the demo as basic and notes batch inference was still a TODO.
- Model weights are downloaded and converted on first use.
- The README calls for a suitable Python 3.x and recent TensorFlow environment; it does not establish compatibility with every current release.
Set up the documented webcam demo prerequisites
Prepare the project dependencies needed for webcam capture and pose-overlay display.
Before you start
- A suitable Python 3.x environment and recent TensorFlow.
- A connected webcam for the demo stage.
- The pip version of OpenCV; the README gives
opencv-python==3.4.5.20as an example.
Steps
Set up a Python and TensorFlow environment; the README provides a Conda example with TensorFlow GPU, SciPy, PyYAML and Python 3.6.
Install the pip OpenCV package, using the documented
opencv-python==3.4.5.20example if needed.Use the repository's
webcam_demo.pyto capture webcam frames and display pose overlays.
Expected outcome
The documented webcam workflow captures frames through OpenCV and renders detected keypoints and skeletons on screen.
Guide limitations
- The README says Anaconda's default OpenCV lacks the required video-capture support.
- It warns that OpenCV 4.x may have a broken
drawKeypointsbinding. - The demo defaults to device ID 0 and assumes 1280×720 is possible; webcam behavior is not guaranteed by the setup instructions.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 11 November 2026
- Original website title
- rwightman/posenet-python · Official homepage title · retained in its source language
Related options
posenet-pytorch — The repository README points to this as a slightly faster PyTorch implementation that followed from the Python port.

