Skip to main content

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.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mvnx-0.1.18.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

mvnx-0.1.18-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file mvnx-0.1.18.tar.gz.

File metadata

  • Download URL: mvnx-0.1.18.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • 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.0 CPython/3.8.10

File hashes

Hashes for mvnx-0.1.18.tar.gz
Algorithm Hash digest
SHA256 d04eca26fb7277e7fa4527b07f060f69599d0fee79a0cf7bde2539064a0b028b
MD5 36e9af6e9afa015b86b10a4d286c3913
BLAKE2b-256 88567484fff7ae8293fd217e2aa8fb271a67d824dcb6becff76e6d80c750020c

See more details on using hashes here.

File details

Details for the file mvnx-0.1.18-py3-none-any.whl.

File metadata

  • Download URL: mvnx-0.1.18-py3-none-any.whl
  • Upload date:
  • Size: 6.1 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.0 CPython/3.8.10

File hashes

Hashes for mvnx-0.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 73d2733af52e84f8630fffdb0f7f20f1ea3bcbadc045e6c65034ee6ac7f5c95d
MD5 c086dd5c8207b645744cc06dfc94d8bf
BLAKE2b-256 e353530e4fe035febd1df5b380d9ff814e77eea1170cb35f856df99d352379aa

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