penincillin / DREAM

This is the public repository for our accepted CVPR 2018 paper "Pose-Robust Face Recognition via Deep Residual Equivariant Mapping"
http://mmlab.ie.cuhk.edu.hk/projects/DREAM/
BSD 2-Clause "Simplified" License
388 stars 98 forks source link

How to get the 3D facial landmarks coordinate? #6

Closed lyatdawn closed 6 years ago

lyatdawn commented 6 years ago

Thanks for you answers all the time. My another question is: If we have gettd the 2D facial landmarks coordinates, how to get the 3D facial landmarks coordinate? Could you give me some references for detials? Or some codes? Thanks again

penincillin commented 6 years ago

Well, in most part of our work, the 3D facial landmarks are not utilized. They might only be useful in the process of calculating yaw angle. For yaw angle calculating, you could refer to this paper. Actually, you could use any code which could calculate yaw angle given a single 2D face image.

lyatdawn commented 6 years ago

Thanks. I select opencv and dlib to calculate yaw angle given a single 2D face image, the only preblem is How to get the 3D facial landmarks coordinate? Do you konw any methods on this problem?

penincillin commented 6 years ago

In our project, 3D facial landmarks might be useful only when calculating the yaw angle. If you have already gotten the yaw angle, then you might not need the 3D facial landmarks. However, if you want 3D facial landmarks for other usage, I am sorry that I have no experience of calculating the 3D facial landmarks.

KangolHsu commented 6 years ago

@ly-atdawn did you use the method in the URL below? https://www.learnopencv.com/head-pose-estimation-using-opencv-and-dlib/

lyatdawn commented 6 years ago

@KangolHsu Yes, I use this code to calculate the angle.