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

How to save the obj files #54

Closed Monjur-Mahathir closed 2 years ago

Monjur-Mahathir commented 2 years ago

Is there any way to continuously save the 3d face models so that I can get a 4d obj file?i can see the rendering but cant save them

patrikhuber commented 2 years ago

Hi, sorry for the late reply. You can use eos's write_obj(...) or write_textured_obj(...) function - it's already used in the current example (https://github.com/patrikhuber/4dface/blob/70d4d5f77c3240be9412521b1d92d5701381e8ab/apps/4dface.cpp#L253), you could just call that every frame.