mediapipe icon indicating copy to clipboard operation
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?

Open della0418 opened this issue 3 years ago • 6 comments

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.

della0418 avatar Jul 12 '22 14:07 della0418

Hi @della0418 , we do support OBJ topology format via converting into mediapipe.face_geometry.Mesh3d via the non-official converter;

sureshdagooglecom avatar Jul 13 '22 05:07 sureshdagooglecom

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...

blender_wireframe blender_texturemap

andrechen avatar Jul 17 '22 06:07 andrechen

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.

google-ml-butler[bot] avatar Jul 24 '22 07:07 google-ml-butler[bot]

Closing as stale. Please reopen if you'd like to work on this further.

google-ml-butler[bot] avatar Jul 31 '22 08:07 google-ml-butler[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Jul 31 '22 08:07 google-ml-butler[bot]

Hi @della0418 , You must create your own file-calculator which implement filament as a renderer.

sureshdagooglecom avatar Aug 04 '22 06:08 sureshdagooglecom

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.

google-ml-butler[bot] avatar Aug 12 '22 07:08 google-ml-butler[bot]

Closing as stale. Please reopen if you'd like to work on this further.

google-ml-butler[bot] avatar Aug 19 '22 07:08 google-ml-butler[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Aug 19 '22 07:08 google-ml-butler[bot]