1adrianb / face-alignment

:fire: 2D and 3D Face alignment library build using pytorch
https://www.adrianbulat.com
BSD 3-Clause "New" or "Revised" License
6.99k stars 1.34k forks source link

Can I get the head pose from 3d landmarks directly? #120

Closed junedgar closed 3 years ago

junedgar commented 5 years ago

Thank you for your great work! Can I compute the yaw, pitch and roll from 3D landmarks? Can you give me some advices?

ajayempty commented 5 years ago

Awaiting answer on this...

Alloshee commented 5 years ago

i would like to know the answer

zalo commented 5 years ago

Here's a quick example showing how to construct a rotation matrix using the 3D landmarks. Convert that to pitch/yaw/roll however you like.

https://gist.github.com/zalo/71fbd5dbfe23cb46406d211b84be9f7e image

zhangluustb commented 3 years ago

How about the 2d landmarks only?