目录
pip install bpy
https://github.com/Hibiki33/BVHPlayer
好像不是17个点
https://github.com/ColbyZhuang/BVH_reader/tree/master
pip install?pyopengl
pip install PyGLM
pip install spatial-transform
https://github.com/Wasserwecken/bvhio
可以获取帧长度,?
root = bvhio.readAsHierarchy(r'D:\project\kunkun_clip_h36m.bvh')
# root.printTree()
# load rest pose and print data
root.loadRestPose(recursive=True)
print('\nRest pose position and Y-direction of each joint in world space ')
prediction3dpoint=[]
data_len= len(root.Keyframes)
for joint, index, depth in root.layout():
print(f'{joint.PositionWorld} {joint.UpWorld} {joint.Name}')
prediction3dpoint.append([list(joint.PositionWorld)])
# viz_output='out.bvh'
# prediction3dpoint=np.asarray(prediction3dpoint)
# write_standard_bvh(viz_output, prediction3dpoint)