microsoft / Deep3DFaceReconstruction

Accurate 3D Face Reconstruction with Weakly-Supervised Learning: From Single Image to Image Set (CVPRW 2019)
MIT License
2.18k stars 443 forks source link

how to get 3d coordinates for 68 landmarks #30

Open aadha3 opened 5 years ago

aadha3 commented 5 years ago

Hi @YuDeng Thanks for the library, Can you please tell me how to get the 68 landmarks in 3D instead of 2D ? I see here: https://github.com/microsoft/Deep3DFaceReconstruction/blob/138ff7399d8cca8096f814c7f2aa9db5dee40986/reconstruct_mesh.py#L182 you are able to get the landmarks in 2D, how do I convert them to 3D coordinates ?

Thanks.

YuDeng commented 5 years ago

Hi, you can directly get 3D landmarks using face_shape[:,facemodel.keypoints,:] where face_shape is one of the returns of the Reconstruction function .

aadha3 commented 5 years ago

Hi @YuDeng Thanks for the response. Is the reconstruction from multiple images(set of images from different angles) is available?

YuDeng commented 5 years ago

Sorry, it is not available yet :p

sidis8066 commented 4 years ago

Hi @aadha3 did u find any codes for reconstruction from multiple images.