Skip to main content

Transform human movement into generative art. Track body poses from video and create SVG visualizations of motion trajectories

Project description

choreopath

Transform human movement into generative art. A Python tool that uses MediaPipe to track body poses from video and creates SVG visualizations of motion trajectories - perfect for pen plotters, laser cutters, and digital art.

Features

  • Track 33 body landmarks using MediaPipe Pose
  • Process video files with OpenCV to extract tracking data
  • Export tracking data to CSV with coordinates and visibility scores
  • Generate SVG visualizations with hierarchical body part grouping, ready to be used in Inkscape
  • Analyze tracking data quality with detailed reports
  • Create animated visualizations of pose tracking
  • Command-line interface

Installation

choreopath is pushed to Pypi at each new release. You can pip install choreopath to install it. Beware though, some versions of Python are incompatible with it as MediaPipe isn't currently available for Python >=3.13.

Instead, it is suggested to use uv and run choreopath like this:

uvx --python 3.12 choreopath

Usage

Track poses from video

choreopath track video.mp4 tracking_data.csv

Track with custom confidence thresholds

choreopath track video.mp4 tracking_data.csv --min-detection-confidence 0.7 --min-tracking-confidence 0.7

Generate SVG visualization

choreopath draw tracking_data.csv output.svg

Generate SVG with custom dimensions

choreopath draw tracking_data.csv output.svg --width 1920 --height 1080 --min-visibility 0.7

Analyze tracking data

choreopath analyze tracking_data.csv --animation output.mp4 --fps 30

Origin Story

This project was created when working on a generative art project. I used generated videos of dancers to create SVG that I could then plot using a pen plotter.

See example files:

original video animated tracking data examples/fall-recovery-4.svg

License

This software is under a MIT license. Please see LICENSE.md

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

choreopath-1.0.1.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

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

choreopath-1.0.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file choreopath-1.0.1.tar.gz.

File metadata

  • Download URL: choreopath-1.0.1.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for choreopath-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5228c05d36b1b2f590da0b477b5265bde27d2ce645fde7ee31e8f22e93a52185
MD5 d6d5af2dc683cd69b098a3a79c3cbf8b
BLAKE2b-256 1cdfc13333c67a511e98ebd5d5072ec5f5e85d499e484fd865a2774ff8d66bf8

See more details on using hashes here.

Provenance

The following attestation bundles were made for choreopath-1.0.1.tar.gz:

Publisher: publish.yml on marcw/choreopath

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file choreopath-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: choreopath-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for choreopath-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf097bf8550bd56e74bc639caf1e070610e64777758fcfbef57169f95d12c392
MD5 38fd10f1872d82295ad870bbe84c659f
BLAKE2b-256 55fb17b3431d9ecde62e93cca094fa3101167f1e989b383c05638b46dc883454

See more details on using hashes here.

Provenance

The following attestation bundles were made for choreopath-1.0.1-py3-none-any.whl:

Publisher: publish.yml on marcw/choreopath

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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