Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to draw mouth and eyebrows from 468 points of facemesh #963

Closed
billy800413 opened this issue Jul 30, 2020 · 9 comments
Closed

How to draw mouth and eyebrows from 468 points of facemesh #963

billy800413 opened this issue Jul 30, 2020 · 9 comments
Assignees

Comments

@billy800413
Copy link

How to get indexes of mouth and eyebrows? Now, I can just try it point by point.
Is there any document stating which part of the face these 468 points belong to?

@MyGithubNotYours
Copy link

MyGithubNotYours commented Jul 31, 2020

Read these 2 links:

Here are the indices:
https://github.com/ManuelTS/augmentedFaceMeshIndices

I got that link from these pages:
https://creativetech.blog/home/face-landmarks-for-arcore-augmented-faces
and
https://medium.com/@KristiSimakova/try-on-makeup-with-augmented-faces-d2ade1906f90

@fanzhanggoogle fanzhanggoogle self-assigned this Aug 12, 2020
@fanzhanggoogle
Copy link

Hi, @MyGithubNotYours thank you for pointing to the right direction. MediaPipe face mesh shares the same topology as ARcore Augmented Face.

@mgyong mgyong closed this as completed Aug 14, 2020
@wwdok
Copy link

wwdok commented Mar 7, 2022

@quickgrid @MyGithubNotYours @fanzhanggoogle I download canonical_face_mesh.fbx, and open it with windows 3D viewer, but I can not see the index, is this normal:
image

@quickgrid
Copy link

@wwdok You can use blender to get the indices.

To get indices of the object enable Blender Addon MesaureIt, go right sidebar(N key) on 3d viewport and select Vertices button on Mesh Debug option.

Alternate way in Blender 2.8+ is to tick Developer Extras option on Preferences > Developer Extras Option and tick Developer > Indices on Overlays button on 3d viewport. Must be in Edit Mode to have option visible in overlays.

@wwdok
Copy link

wwdok commented Mar 8, 2022

@quickgrid Thank you for your tutorial ! I download the latest version blender, I ticked Developer Extras and change to Edit Mode, now I can see Developer > Indices on Viewport Overlays:
image
But once I imported canonical_face_mesh.fbx, some icons disappear suddenly, now I can not see the Developer > Indices on Viewport Overlays :
image

@wwdok
Copy link

wwdok commented Mar 12, 2022

@quickgrid I figure it out, I need to expand the 'asset' item, select the 'facemesh' item, then select the 'Edit Mode', finally click mouse left to select all the vertex, I get following display:
image

@adityaanantharaman
Copy link

// Lips.
61, 146, 146, 91, 91, 181, 181, 84, 84, 17, 17, 314, 314, 405, 405, 321,
321, 375, 375, 291, 61, 185, 185, 40, 40, 39, 39, 37, 37, 0, 0, 267, 267,
269, 269, 270, 270, 409, 409, 291, 78, 95, 95, 88, 88, 178, 178, 87, 87, 14,
14, 317, 317, 402, 402, 318, 318, 324, 324, 308, 78, 191, 191, 80, 80, 81,
81, 82, 82, 13, 13, 312, 312, 311, 311, 310, 310, 415, 415, 308,
// Left eye.
33, 7, 7, 163, 163, 144, 144, 145, 145, 153, 153, 154, 154, 155, 155, 133,
33, 246, 246, 161, 161, 160, 160, 159, 159, 158, 158, 157, 157, 173, 173,
133,
// Left eyebrow.
46, 53, 53, 52, 52, 65, 65, 55, 70, 63, 63, 105, 105, 66, 66, 107,
// Left iris.
474, 475, 475, 476, 476, 477, 477, 474,
// Right eye.
263, 249, 249, 390, 390, 373, 373, 374, 374, 380, 380, 381, 381, 382, 382,
362, 263, 466, 466, 388, 388, 387, 387, 386, 386, 385, 385, 384, 384, 398,
398, 362,
// Right eyebrow.
276, 283, 283, 282, 282, 295, 295, 285, 300, 293, 293, 334, 334, 296, 296,
336,
// Right iris.
469, 470, 470, 471, 471, 472, 472, 469,
// Face oval.
10, 338, 338, 297, 297, 332, 332, 284, 284, 251, 251, 389, 389, 356, 356,
454, 454, 323, 323, 361, 361, 288, 288, 397, 397, 365, 365, 379, 379, 378,
378, 400, 400, 377, 377, 152, 152, 148, 148, 176, 176, 149, 149, 150, 150,
136, 136, 172, 172, 58, 58, 132, 132, 93, 93, 234, 234, 127, 127, 162, 162,
21, 21, 54, 54, 103, 103, 67, 67, 109, 109, 10};

@Gauravi1
Copy link

Gauravi1 commented Apr 19, 2024

can anyone get me code for eyebrow segemation through mediapipe in python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants