Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pocketpose-1.0.0a2.post0.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pocketpose-1.0.0a2.post0-py3-none-any.whl (931.9 kB view details)

Uploaded Python 3

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

Hashes for pocketpose-1.0.0a2.post0.tar.gz
Algorithm Hash digest
SHA256 318a227c8d9d432ed9a02561972efb6927d785353754289a36f77364a3ac717e
MD5 ecf0e453cecc6e08e1b6c06497cb8744
BLAKE2b-256 809494fe6bfda627086c45c93251f08d628bb764094e97c58b7cfcc36264f77a

See more details on using hashes here.

File details

Details for the file pocketpose-1.0.0a2.post0-py3-none-any.whl.

File metadata

File hashes

Hashes for pocketpose-1.0.0a2.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5d431f434a62aabf5e54f4d26dfd5ddbab958633330ca62fa85dc0cf0ec9f69
MD5 acb6f09fedd1c6398e5f88034d972197
BLAKE2b-256 746079e798e8a8b9ece7b8662695424d9975066230bbd31ef389b5fe483d8554

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page