patrikhuber / 4dface

Real-time 3D face tracking and reconstruction from 2D video
https://www.4dface.io
Apache License 2.0
793 stars 248 forks source link

Is it possible to use my own face model? #27

Closed YuqinWu closed 7 years ago

YuqinWu commented 7 years ago

Hi, thank you for your amazing project. However, I want to know if I can use my own face model? I noticed that now your project is using a sfm_shape_3448.bin file made by cereal. However, my face model is an obj file. I wish to know how to incorporate my own face model into your project? What jobs are needed to be done? Is your code compatible with different face model?

Thanks!

patrikhuber commented 7 years ago

Hi, Thanks! You can easily use your own model if it's a PCA model or something similar. Keep in mind we are talking about statistical models of faces (i.e. PCA models), and not just a single mesh (i.e. .obj file). With a single .obj mesh, you obviously can't create a model of face variation (a face model).

CodingGou commented 7 years ago

@patrikhuber how to transform my own head model to a PCA model ?

patrikhuber commented 7 years ago

@CodingGou Please read my above comment. I suggest you read up some literature about Morphable Models and statistical/PCA shape models. Maybe you should ask the question first about what you want to do with your own head model?