yfeng95 / PRNet

Joint 3D Face Reconstruction and Dense Alignment with Position Map Regression Network (ECCV 2018)
http://openaccess.thecvf.com/content_ECCV_2018/papers/Yao_Feng_Joint_3D_Face_ECCV_2018_paper.pdf
MIT License
4.96k stars 944 forks source link

Applying pose estimate from source to target face #39

Open rosenb0rg opened 6 years ago

rosenb0rg commented 6 years ago

I'm digging into the code trying to see if there is a way I can use the the pose estimate from one face to transform another. Basically, I want to detect the pose of source face A, and generate a textured model of target face B, transform face B so it has the same pose as face A, and then output an image.

I tried simply applying the Euler angles you get from "--isPose True" in meshlab but the resulting adjustments weren't right.

It seems like there should be a simple way to do this within the demo_texture.py script, but I'm having trouble wrapping my head around the matrix transformations. Any tips?