-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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 change lip color using Mediapipe? #4179
Comments
I can outline lips using facemesh, but I need assistance to fill in color with controllable transparency in them. Plus no bold lines for outlining also. |
This has to do more with OpenCV than Mediapipe. You might want to search for how to fill a polygon using cv2.fillPoly. You will need the landmarks to define the contour you can refer to this image here to find which landmarks. |
@techy-keeda, |
I'm using Python and OpenCV. Running the code on Google Colab. Any suggestion to improve and stabilize the polygon blending are welcome!! Face Croppingfrom google.colab.patches import cv2_imshow Mask Generationimport itertools Mask Blendingmask_diff_3ch = cv2.cvtColor(mask_diff, cv2.COLOR_GRAY2BGR) How can I make improvements to the code so that lipstick color change is seamless and the mask dances a bit less on webcam imput? |
@kuaashish any suggestions? |
Hi @kostyaby, |
Hey @techy-keeda, Generating the lip mask from the landmarks is an important step that you've already taken, so that's good. It looks like you've gotten pretty far already! To enhance the quality, I'd recommend doing the following:
Hopefully this reply helps you to proceed forward! |
Thanks @kostyaby |
@techy-keeda, |
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you. |
This issue was closed due to lack of activity after being marked stale for past 7 days. |
Hi all, I need help with changing the lip color of a person in a video using Mediapipe. I've used Mediapipe for facial landmark detection and tracking, but I'm not sure how to proceed with changing the lip color. I couldn't find any resources on how to achieve this in the Mediapipe documentation. Can someone please provide me with some guidance on how to do this? Thank you!
The text was updated successfully, but these errors were encountered: