A once-simple 3D motion capture visualizer that is becoming more advanced over time.
Project description
PyMoCapViewer Documentation
PyMoCapViewer is a Python package designed to visualize motion capture data in a user-friendly and interactive manner. It allows you to load various mocap file formats, animate the skeleton, and control the viewing experience with keyboard shortcuts.
Installation
You can install PyMoCapViewer using pip:
pip install PyMoCapViewer
Keyboard Shortcuts
The following keyboard shortcuts are available for interacting with PyMoCapViewer:
Key | Action |
---|---|
Space | Play/pause animation |
s | Capture screenshot |
Enter | Capture Screenvideo |
i | Print current frame number |
0 | Jump to first frame |
Left/Right Arrow | Previous/Next frame |
Left Mouse Button | Interact with scene |
q | Quit application |
Example Usage
Load the kinematic data as a Pandas Dataframe. The columns should contain the joints in the following format: J1 (x), J1 (y), J1 (z), ..., JN (x), JN (y), JN (z).
from PyMoCapViewer import MoCapViewer
from PyMoCapViewer.examples import get_azure_data, get_vicon_data
df_pos, df_ori = get_azure_data()
viewer = MoCapViewer(sphere_radius=0.01, sampling_frequency=30)
viewer.add_skeleton(df_pos, skeleton_connection="azure", skeleton_orientations=df_ori, orientation="quaternion")
viewer.show_window()
df = get_vicon_data()
viewer = MoCapViewer(sphere_radius=0.01, sampling_frequency=100)
viewer.add_skeleton(df, skeleton_connection="vicon", color="red")
viewer.show_window()
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
File details
Details for the file pymocapviewer-0.0.15.tar.gz
.
File metadata
- Download URL: pymocapviewer-0.0.15.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ec52426e6fe31f30d6cf96838adb235a580dedcb766126c58291a77b1484c67 |
|
MD5 | a212d443a8152cc267d151c91670f387 |
|
BLAKE2b-256 | 5c89832d44b84ce4c196941540e3005bc1024a3b2c995207ef5398d4c83a9298 |
File details
Details for the file PyMoCapViewer-0.0.15-py3-none-any.whl
.
File metadata
- Download URL: PyMoCapViewer-0.0.15-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fad6f97de5e9a803fb218a19dbda78e8e56d80b6506814e319b5e4e99b9af0b |
|
MD5 | 183736a85db1d2ca23f40f72eed6d450 |
|
BLAKE2b-256 | cd889e668740ace4bc6d524abc2c1827adbe8bef41e2bca4c5b33114f9f2ae8d |