Python 3 module for reading Biovision Hierarchy (BVH) files and convert keyframes to poses.
- 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
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)
Thanks to Carnegie Mellon University for their free motion capture database which is also available in bvh format.
If you find bugs or miss features, please contribute! (or use issues tab :-))