Skip to main content

A once-simple 3D motion capture visualizer that is becoming more advanced over time.

Project description

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

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

pymocapviewer-0.0.15.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

PyMoCapViewer-0.0.15-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

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

Hashes for pymocapviewer-0.0.15.tar.gz
Algorithm Hash digest
SHA256 3ec52426e6fe31f30d6cf96838adb235a580dedcb766126c58291a77b1484c67
MD5 a212d443a8152cc267d151c91670f387
BLAKE2b-256 5c89832d44b84ce4c196941540e3005bc1024a3b2c995207ef5398d4c83a9298

See more details on using hashes here.

File details

Details for the file PyMoCapViewer-0.0.15-py3-none-any.whl.

File metadata

File hashes

Hashes for PyMoCapViewer-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 4fad6f97de5e9a803fb218a19dbda78e8e56d80b6506814e319b5e4e99b9af0b
MD5 183736a85db1d2ca23f40f72eed6d450
BLAKE2b-256 cd889e668740ace4bc6d524abc2c1827adbe8bef41e2bca4c5b33114f9f2ae8d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page