Facial Landmarks Detection | with Opencv, Mediapipe and Python
HTML-код
- Опубликовано: 13 май 2021
- source code and files: pysource.com/2021/05/14/468-f...
In this tutorial, we will see how to find 468 facial landmarks easily with a library called Mediapipe , extract the x and y coordinates so we can use them as we like.
➤ Full Video courses:
Object Detection: pysource.com/object-detection...
➤ Follow me on:
Instagram: / pysource7
LinkedIn: / pysource
➤ For business inquiries:
pysource.com/contact
#opencv #python #Mediapipe Наука
Wow, really powerful library, thanks for introducing it to us ;)
Don't hesitate to provide more! totally worth it
Thank god I found your video! It's so helpful for my project.
This information is exactly what I needed. Been playing around with the facemesh but couldn't figure out how to get the coordinate x,y to print out. Thanks you! liked and subscribed!
Hey. I'm looking to print the X, Y coordinates. Can you plz tell me how to do it? If u found it??
@@manojk115 watch this video: ruclips.net/video/Yg6bFRnOSbs/видео.html
Thanks for this tutorial.
FYI; if any one getting the problem of loading the mediapipe library(DLL not found) ., then try to install msvc-runtime using pip.
@@jayeshalagh1101 sure .what error you getting ?
@@jayeshalagh1101 can you help me with below question:
1. Version of python
2. Did you have visual studio on your desktop or laptop ?
@@jayeshalagh1101 also check by chace you install 32 bit python instead of 64 bit. Make sure your library and python version should match.
Note: just give a try py -m pip install mediapipe
Thanks so much, this makes everything really easy
Thanks for the tutorial!
Is there a mapping between facial landmarks and region of interest?
NICE WORK and THANK YOU!
Thank you for this!
Very informative video, thank you
Awesome one! thanks :)
Thank you for this video.
Once you have facial landmarks, what is the process of drawing polygons / connecting splines to create shapes called?
For instance “draw a white solid in the area under the eyes and another to the left and right of the mouth.”
perfect, make more videos about face landmark anylising!!!
good quality videos bro
Great Vid
Thanks!
Hi Thank you so much for the tutorial! Is it possible to map the 468 landmarks to 68 landmarks that dlib, opencv use?
You are good bro..
nice thankyou
this is cool thank you but could you possibly point me in the direction of information on how to use the points to project facial motion onto a 3D face model? Thank You!
Is it possible to use the z-coordinate to find out the direction of the head in which direction it is rotating... and can we know the real z-coordinate as x, y explained the z-coordinate?
hi
Thanks for this tutorial , i have a Project to detect a hand and i need to use the coordinate Z so i have some difficulty , any help please
Hi , I'm using Mediapipe for facemesh, and I'm stuck at how to compare facial measurements from different frames? Do you have any idea on how to do this please? thanks!
please make a video , Point cloud compression for autonomous driving, Lidar please
how to save the facial landmarks in FBX format to use in maya or blender
hi i like all your videos . can you make video for face swapping using mediapipe instead of dlib from previous videos
I see that mediapipe struggles if the video is much longer. I'm trying with imutils. Is opencv a good choice?
🎯 Key Takeaways for quick navigation:
00:00 🚀 *Introduction to Facial Landmarks Detection*
- Overview of the tutorial on finding 468 facial landmarks using the MediaPipe library.
- Sergio emphasizes simplifying the process for extracting facial landmark coordinates.
- Mention of the importance of having OpenCV and MediaPipe installed for the tutorial.
01:19 📚 *Loading and Displaying an Image*
- Instructions for loading an image using OpenCV and displaying it.
- Importance of verifying correct image loading by showing it.
- Sergio provides the necessary Python commands for image loading and display.
04:35 🛠️ *Initializing and Processing with MediaPipe*
- Explanation of initializing face mesh from MediaPipe for facial landmarks.
- Creating a face mesh object for detection and processing.
- Processing the image using MediaPipe's face mesh and addressing the RGB format difference with OpenCV.
07:42 🔄 *Converting Coordinates and Drawing Landmarks*
- Discussing the RGB format conversion for image processing compatibility.
- Extracting and converting x, y coordinates of facial landmarks for accurate positioning.
- Demonstrating how to draw circles on the image at each landmark point.
17:19 🎨 *Handling Multiple Facial Landmarks*
- Implementing a loop to access and draw circles for all 468 facial landmarks.
- Suggesting the use of text labels for better identification of landmark indices.
- Providing insights on making specific landmark points more visible.
19:26 📹 *Extending to Real-Time Video Processing*
- Transitioning from image processing to real-time video processing.
- Setting up a video capture object for webcam usage.
- Explaining the need for a while loop to continuously process frames in real-time.
22:24 ⚙️ *Handling Video End and Conclusion*
- Addressing potential errors when a video ends, causing an empty frame.
- Introducing an if statement to break the loop when there are no more frames.
- Sergio concludes the tutorial, expressing enthusiasm for further exploring MediaPipe functionalities in upcoming videos.
Made with HARPA AI
pls upload a video on reenactment(talking face generation)
Can anyone help of how to get z value also? I'm getting 0 for all landmarks
if i run code the face mesh point away from the face why???
sorry but your program on the desc is gone can u send it again?
Very nice video. Can you make a video on facial recognition using the same method? Or another way?
I might do that once I have the time to share more videos about the mediapipe library
Hello . i am student. please help me . I have same errors installing package . please help me
Sir, there are no files … Not image and video … Where can I download that ??
its work with image but not with video can you give me solution
Bella pe Pinolo Fisso ahahaha Grande
:)
How to show the 468 landmarks only by the captured camera video (that means only black background will be shown along with the 468 green landmarks)?
You can create a black frame just after the original frame:
black_frame = np.zeros((height, width, 3), np.uint8)
then instead of drawing the circles on the frame, you draw them on black frame.
then just display it:
cv2.imshow("black frame", black_frame)
@@pysource-com Thank you very much!
how to install this on my pycharm 😭
Could you pls share dataset needed for this project...
No dataset is needed for this project. the source code can be found in the link in the description
Like