Skip to main content

Alt text

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()

Release files for PyMoCapViewer 0.0.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyMoCapViewer 0.0.15
File Size Uploaded
pymocapviewer-0.0.15.tar.gz 12.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyMoCapViewer 0.0.15
File Interpreter ABI Platform
PyMoCapViewer-0.0.15-py3-none-any.whl Python 3 none any Details

Total release size: 25.5 kB

Release files / pymocapviewer-0.0.15.tar.gz

Download URL pymocapviewer-0.0.15.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3ec52426e6fe31f30d6cf96838adb235a580dedcb766126c58291a77b1484c67
BLAKE2b-256 checksum
How to use checksums
5c89832d44b84ce4c196941540e3005bc1024a3b2c995207ef5398d4c83a9298
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / PyMoCapViewer-0.0.15-py3-none-any.whl

Download URL PyMoCapViewer-0.0.15-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4fad6f97de5e9a803fb218a19dbda78e8e56d80b6506814e319b5e4e99b9af0b
BLAKE2b-256 checksum
How to use checksums
cd889e668740ace4bc6d524abc2c1827adbe8bef41e2bca4c5b33114f9f2ae8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.0.15 This release

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page