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

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.0.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.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: choreopath-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 1be6438c5251040107978737e96017ee674d68ccc2dff9920123327a1cc01e6f
MD5 3648f981bf0d32ca42965dd8087e2904
BLAKE2b-256 ad7abc23c5ac66fff8afc330ff77f0dd775931c4c1bae2f23260016b62d1f677

See more details on using hashes here.

Provenance

The following attestation bundles were made for choreopath-1.0.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: choreopath-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37230b22dd5f965291473e137b95c03616f65f549ebd311d74c752b92ed405e4
MD5 3e1f6358ad4163fb1a5e4c0c33d93f58
BLAKE2b-256 52a77752a5d2d8e5ab3363ebacf6623555ed9887ae134072e097003836a2d516

See more details on using hashes here.

Provenance

The following attestation bundles were made for choreopath-1.0.0-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