An inference library for real-time human pose estimation.
Project description
Introduction
PocketPose is an open-source library that facilitates fast and efficient pose estimation on mobile and edge devices. It supports TensorFlow Lite (TFLite) models and provides a collection of pre-trained models ready to use out of the box.
Features
- High-performance pose estimation on mobile devices
- Support for TensorFlow Lite models
- Collection of pre-trained models for various use-cases
- Easy-to-use API for custom model deployment
Installation
PocketPose can be installed from source:
pip install pocketpose
This installs the CPU-only version of PocketPose. To install the GPU version, use:
pip install pocketpose-gpu
Please refer to the installation guide for detailed installation instructions.
Quick Start
Running pose estimation on an image is as simple as:
import pocketpose as pp
# Initialize the image inferencer
inferencer = pp.ImageInferencer(
pose_model="pose-model-alias",
det_model="detection-model-alias",
device="cpu",
)
# Estimate keypoints from the image
image_path = "path/to/image.jpg" # JPEG or PNG
keypoints = inferencer.infer(image_path)
# Visualize and save the keypoints
inferencer.visualize(image_path, keypoints, save_path="path/to/save.jpg")
# Alternatively, visualize directly during inference
# inferencer.infer(image_path, visualize=True, save_path="path/to/save.jpg")
# If save_path is omitted, visualization is displayed on screen
For more detailed usage and a list of all available models, check out our usage guide.
License
PocketPose is released under the CC BY-NC 4.0 license. See the LICENSE for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pocketpose-1.0.0a2.post0.tar.gz.
File metadata
- Download URL: pocketpose-1.0.0a2.post0.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
318a227c8d9d432ed9a02561972efb6927d785353754289a36f77364a3ac717e
|
|
| MD5 |
ecf0e453cecc6e08e1b6c06497cb8744
|
|
| BLAKE2b-256 |
809494fe6bfda627086c45c93251f08d628bb764094e97c58b7cfcc36264f77a
|
File details
Details for the file pocketpose-1.0.0a2.post0-py3-none-any.whl.
File metadata
- Download URL: pocketpose-1.0.0a2.post0-py3-none-any.whl
- Upload date:
- Size: 931.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5d431f434a62aabf5e54f4d26dfd5ddbab958633330ca62fa85dc0cf0ec9f69
|
|
| MD5 |
acb6f09fedd1c6398e5f88034d972197
|
|
| BLAKE2b-256 |
746079e798e8a8b9ece7b8662695424d9975066230bbd31ef389b5fe483d8554
|