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
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1be6438c5251040107978737e96017ee674d68ccc2dff9920123327a1cc01e6f
|
|
| MD5 |
3648f981bf0d32ca42965dd8087e2904
|
|
| BLAKE2b-256 |
ad7abc23c5ac66fff8afc330ff77f0dd775931c4c1bae2f23260016b62d1f677
|
Provenance
The following attestation bundles were made for choreopath-1.0.0.tar.gz:
Publisher:
publish.yml on marcw/choreopath
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
choreopath-1.0.0.tar.gz -
Subject digest:
1be6438c5251040107978737e96017ee674d68ccc2dff9920123327a1cc01e6f - Sigstore transparency entry: 601307870
- Sigstore integration time:
-
Permalink:
marcw/choreopath@0c5aa20e4421e7bc1c212f4447cdc1789af49944 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/marcw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0c5aa20e4421e7bc1c212f4447cdc1789af49944 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37230b22dd5f965291473e137b95c03616f65f549ebd311d74c752b92ed405e4
|
|
| MD5 |
3e1f6358ad4163fb1a5e4c0c33d93f58
|
|
| BLAKE2b-256 |
52a77752a5d2d8e5ab3363ebacf6623555ed9887ae134072e097003836a2d516
|
Provenance
The following attestation bundles were made for choreopath-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on marcw/choreopath
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
choreopath-1.0.0-py3-none-any.whl -
Subject digest:
37230b22dd5f965291473e137b95c03616f65f549ebd311d74c752b92ed405e4 - Sigstore transparency entry: 601307871
- Sigstore integration time:
-
Permalink:
marcw/choreopath@0c5aa20e4421e7bc1c212f4447cdc1789af49944 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/marcw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0c5aa20e4421e7bc1c212f4447cdc1789af49944 -
Trigger Event:
push
-
Statement type: