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 implement merged isomap and visualize mesh in Python #38

Closed jjjjohnson closed 6 years ago

jjjjohnson commented 6 years ago

Hi @patrikhuber, I checked the help(eos) and cannot find any info about merging isomap. And it is in the helpers.hpp for cpp version. Is is something I should write as the helper function?

Thanks a lot! Junjie

patrikhuber commented 6 years ago

Hi Junjie,

I think if you want to merge isomaps in Python, you best write the code for that by yourself, depending on how you want to merge. eos will return the images as NumPy arrays and you could process them with OpenCV's Python bindings or something like that. As for visualising the mesh, you'd probably best use OpenGL or something like that to draw the vertices and eos/4dface return in the eos::core::Mesh. You could also implement the draw_wireframe function in Python, if that's what you wanted, it's a straight copy&paste.