Skip to main content

bvhsdk logo

Description:

bvhsdk is a small but versatile Python library designed for the management of BVH (Biovision Hierarchy) files commonly used in animation and motion capture. This library offers a comprehensive set of tools to read, write, and extract valuable information from BVH animations. Whether you're a computer graphics artist, animator, researcher, or developer, bvhsdk simplifies your BVH file-handling needs.

Key Features:

  • BVH File I/O: Easily read BVH files into Python data structures or write modified animations back to BVH format.

  • Animation Data Extraction: Extract information from BVH files, such as joint hierarchies, frametime, and motion capture poses. Access motion data for further analysis or manipulation, such as local and global positions, rotation, and translation.

  • Manipulation Tools: Modify BVH animations programmatically. Use bvhsdk to implement algorithms for retargeting animations, blending motions, or smoothing trajectories.

  • Data Visualization: Visualize BVH animations with a GUI tool for representations of motion data (work in progress). Plot animations inside Jupyter Notebook.

3d plot notebook gif

Use Cases

  • Education: Study, test and gain practical experience with several fundamental methods and concepts of 3D math for animation such as Euler angles, matrices and transformations, local and global coordinate systems, among others.

  • Motion Capture Analysis: Extract valuable insights from motion capture data for research, biomechanics, or character animation improvements.

  • Data Science: Utilize motion data extracted from BVH files for machine learning, data analysis, or pattern recognition applications.

  • Game Development: Incorporate BVH animations into video games for realistic character movements and interactive experiences.

  • Tonoli, R. L., Marques, L. B. D. M. M., Ueda, L. H., & Costa, P. P. D. (2024). Gesture Area Coverage to Assess Gesture Expressiveness and Human-Likeness. In GENEA: Generation and Evaluation of Non-verbal Behaviour for Embodied Agents Workshop 2024.

  • Sanchez, J. I. G., Inofuente-Colque, K., Marques, L. B. D. M. M., Costa, P. P. D. & Tonoli, R. L. (2024). Benchmarking Speech-Driven Gesture Generation Models for Generalization to Unseen Voices and Noisy Environments. In GENEA: Generation and Evaluation of Non-verbal Behaviour for Embodied Agents Workshop 2024.

  • Tonoli, R. L., Marques, L. B. D. M. M., Ueda, L. H., & Costa, P. P. D. (2023). Gesture Generation with Diffusion Models Aided by Speech Activity Information. In GENEA: Generation and Evaluation of Non-verbal Behaviour for Embodied Agents Challenge 2023.

  • Tonoli, R. L. (2019). Motion retargeting preserving spatial relationship: Transferência de movimentos preservando relação espacial (DISSERTAÇÃO Mestre em Engenharia Elétrica). Campinas, SP.

  • Tonoli, R. L., Costa, P. D. P., & De Martino, J. M. Signing Avatar in Virtual Reality: An Intelligibility Study.

Project Disclaimer

Note: This project is a work in progress and has been primarily developed by a single contributor. As a result, it may currently lack documentation, contain sections of code that are not fully optimized and include remnants from its origins as part of another project.

We appreciate your understanding and patience as we continue to improve and refine this project. We are actively working to address these issues and make the codebase more organized and accessible. If you have expertise in this area or are interested in contributing, your assistance would be greatly appreciated. You can check how you can contribute and some of the interesting improvements below. Together, we can make this project even better!

Thank you for your interest and support.

Contribute

Want to contribute? Feel free to create pull requests, issues, or emails. Here are some major improvements that would greatly benefit bvhsdk:

  • Support for all rotation orders; currently, only ZXY is fully supported.
  • Documentation: help document every function and provide some examples when needed.
  • Code: standardize code, such as variables and function names.
  • Mathutils: include other representations of rotations and convertions between them, such as quaternions and axis-angle.
  • GUI: improve current visualization; develop other visualizations, such as hierarchy, foot contact, velocity and acceleration plots; overall toolkits for visualization.
  • Skeleton Map: include fingers; include other skeletons standards; create an option for reading and writing skeleton map.

Contact

If you have any questions or suggestions, please contact us via: rltonoli@gmail.com

Citation

If you find this library useful, please cite this master's thesis:

@mastersthesis{tonoli2019motion,
  title={Motion retargeting preserving spatial relationship: Transfer{\^e}ncia de movimentos preservando rela{\c{c}}{\~a}o espacial},
  author={Tonoli, Rodolfo Luis},
  year={2019},
  school={Universidade Estadual de Campinas, Faculdade de Engenharia Elétrica e de Computação},
  address={Campinas, SP}
  url={https://hdl.handle.net/20.500.12733/1639986}
}

Metadata

Release files for bvhsdk 0.2.1

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

Source distribution (sdist)

Source distribution for bvhsdk 0.2.1
File Size Uploaded Provenance Actions
bvhsdk-0.2.1.tar.gz 2.8 MB Without provenance Details for bvhsdk-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 2.9 MB

Release files / bvhsdk-0.2.1.tar.gz

Download URL bvhsdk-0.2.1.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
4a4c2d74ab8132525b0583e5f264df4495b04f3f30df0b9ba5ad26417a5b3225
BLAKE2b-256 checksum
How to use checksums
f072c0e02db21e8e6545b1a8aea6c763ec937cf5e6d1e6e619fd2d8ae2e3aa71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / bvhsdk-0.2.1-py3-none-any.whl

Download URL bvhsdk-0.2.1-py3-none-any.whl
Size 69.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3d0b6db121a74fa542f84ff733db8246505f280face5ee61a2e0f3b60ed87a1
BLAKE2b-256 checksum
How to use checksums
34b555d7b58d89575a27b37d8ca9ac5676c1650b96987e974d243d720142c9e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Security for bvhsdk 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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