A lightweight commandline parser for the MVNX motion capture file format
Project description
mvnx
A Python parser for the MVNX motion capture file format (.mvnx)
You can install the library using pip install mvnx
The simplest way to run the tool is in the following way:
from mvnx import MVNX
yourfile = MVNX('path/to/file.mvnx')
This creates an MVNX object, the data in which can then be read using standard Python dot notation, like so:
yourfile.orientation
yourfile.jointAngle
yourfile.angularVelocity
yourfile.segments
yourfile.joints
or you can parse individual modalities (all in camelCase) , as below:
yourfile = MVNX('path/to/file.mvnx')
yourfile.parse_modality('orientation')
yourfile.parse_modality('angularVelocity')
Alternatively, once installed, you can run the tool from the command line, using mvnx
.
You can provide mvnx
a filepath to your .mvnx file and an output path, and it will read the info into a .npy file
Run it using: mvnx --file path/to/file.mvnx --output /path/to/output.npy
Note: the parser at present is doing no batch processing or multiprocessing when parsing the file into an object - it will read directly into memory, so be careful when parsing larger files as it can put load on your system.
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 Distributions
Built Distribution
File details
Details for the file mvnx-0.2-py3-none-any.whl
.
File metadata
- Download URL: mvnx-0.2-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a5c7a600924a90b16adc36c15f265a0711073a7d813cf730e466b0f422d4eb8 |
|
MD5 | 9a96e9e9666128de2a788d0be1946c0a |
|
BLAKE2b-256 | e3595eea623e32eb0610fbcefc62e5c1bf0324dd4a6361f8c3f2a6d7a8d307a7 |