Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 998 Bytes

readme.md

File metadata and controls

34 lines (26 loc) · 998 Bytes

npybvh

Python 3 module for reading Biovision Hierarchy (BVH) files and convert keyframes to poses.

Features

  • Read Biovision Hierarchy files
  • Extract skeleton information (joint hierarchy)
  • Calculate full pose for all keyframes in numpy format
  • Display skeleton
  • Display pose at any keyframe
  • Display full animation

Skeleton Pose animation

How to use

anim = Bvh()
anim.load('example.bvh')
# get position at frame 11
positions, rotations = anim.frame_pos(11)

# get name of joints in order of appearance in array
joint_names = anim.joint_names()

# plot frame 11
anim.plot_frame(11)

Acknowledgements

Thanks to Carnegie Mellon University for their free motion capture database which is also available in bvh format.

Contribute

If you find bugs or miss features, please contribute! (or use issues tab :-))