mediapipe
mediapipe copied to clipboard
How to convert the result of Mediapipe into .OBJ format for our own face that we want to do texture mapping?
System information (Please provide as much relevant information as possible)
- OS Platform and Distribution (e.g. Linux Ubuntu 16.04, Android 11, iOS 14.4):windows10
- Programming Language and version ( e.g. C++ 14, Python 3.6, Java ):python3.9
- Installed using virtualenv? pip? Conda? (if python):conda
Describe the problem: We want to convert the result of Mediapipe into .OBJ format for our own face that we want to do texture mapping , but there are some problems : We don't know how to get complete .OBJ format with our data that got from Mediapipe. We only can get the coordinate of the Mediapipe's landmarks , which are v in .OBJ. We have done to make our face mesh , but we hope to let 2D facial picture paste to 3D face mesh. We don't know how to get vn , vt ,and f in .OBJ format . We need to know the rules of them. Our main reason is letting the code run uv mapping with any useful programming language. We have used Blender to manually facial mapping ,and output the .OBJ that tried to get the rules of vn, vt, and f.
Hi @della0418 , we do support OBJ topology format via converting into mediapipe.face_geometry.Mesh3d via the non-official converter;
the non-official converter converts .obj to mediapipe.face_geometry.Mesh3d. It does not 'convert the result of Mediapipe into .OBJ format'. Or do we miss something?
Enough talks! I have done exporting simple .obj files here (no 'vn', though). Run face_effect example, press 'o' to export .obj at anytime...

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.
Closing as stale. Please reopen if you'd like to work on this further.
Hi @della0418 , You must create your own file-calculator which implement filament as a renderer.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.
Closing as stale. Please reopen if you'd like to work on this further.