KevinLTT / video2bvh

Extracts human motion in video and save it as bvh mocap file.
MIT License
580 stars 90 forks source link

What is the best practice to handle parent-child pair whose relative movement is in multiple dimensions? #30

Open CHUNYUWANG opened 3 years ago

CHUNYUWANG commented 3 years ago

Thanks for releasing the nice code.

In https://github.com/KevinLTT/video2bvh/blob/312d18f53bf31c37adcaf07c97098b67dbf9804a/bvh_skeleton/coco_skeleton.py#L32

we can see that Nose has two children: LeftEye and RightEye 'Nose': ['LeftEye', 'RightEye'],

The initial direction of LeftEye seems to have two dimensions of movement, along x and z?

What is the best practice to handle this case? Should we introduce a pseudo joint MidEye?

KevinLTT commented 3 years ago

I think interpolate a 'MidEye' with 'LeftEye' and 'RightEye' is OK, if you want use them to calculate the rotation of 'Nose'.

Kismetzc commented 3 years ago

Hi, @KevinLTT How do you get the Endsite of initial direction?