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
  • НаукаНаука

Комментарии • 53

  • @Shinika01
    @Shinika01 3 года назад

    Wow, really powerful library, thanks for introducing it to us ;)
    Don't hesitate to provide more! totally worth it

  • @suhani5363
    @suhani5363 Год назад

    Thank god I found your video! It's so helpful for my project.

  • @emo10001
    @emo10001 3 года назад +6

    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!

    • @manojk115
      @manojk115 2 года назад

      Hey. I'm looking to print the X, Y coordinates. Can you plz tell me how to do it? If u found it??

    • @brizleyMax
      @brizleyMax 2 года назад

      @@manojk115 watch this video: ruclips.net/video/Yg6bFRnOSbs/видео.html

  • @shinchan3644
    @shinchan3644 3 года назад +4

    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.

    • @shinchan3644
      @shinchan3644 3 года назад +1

      @@jayeshalagh1101 sure .what error you getting ?

    • @shinchan3644
      @shinchan3644 3 года назад

      @@jayeshalagh1101 can you help me with below question:
      1. Version of python
      2. Did you have visual studio on your desktop or laptop ?

    • @shinchan3644
      @shinchan3644 3 года назад

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

  • @JominJose
    @JominJose 2 года назад

    Thanks so much, this makes everything really easy

  • @rubenseror7262
    @rubenseror7262 3 года назад +1

    Thanks for the tutorial!
    Is there a mapping between facial landmarks and region of interest?

  • @NiVofHiR
    @NiVofHiR 2 года назад

    NICE WORK and THANK YOU!

  • @scottlee38
    @scottlee38 3 года назад

    Thank you for this!

  • @rudrapratap3303
    @rudrapratap3303 3 года назад

    Very informative video, thank you

  • @harshithahprabhu6220
    @harshithahprabhu6220 2 года назад

    Awesome one! thanks :)

  • @ronaktawde
    @ronaktawde 3 года назад

    Thank you for this video.

  • @ericmlevy
    @ericmlevy Год назад +1

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

  • @drdev_blog
    @drdev_blog Год назад

    perfect, make more videos about face landmark anylising!!!

  • @benjaminfindon5028
    @benjaminfindon5028 3 года назад

    good quality videos bro

  • @yevgeniybondar7509
    @yevgeniybondar7509 2 года назад

    Great Vid

  • @bathingapestacie
    @bathingapestacie 2 года назад

    Thanks!

  • @musicalworld2207
    @musicalworld2207 2 года назад

    Hi Thank you so much for the tutorial! Is it possible to map the 468 landmarks to 68 landmarks that dlib, opencv use?

  • @maheshshriram6769
    @maheshshriram6769 Год назад

    You are good bro..

  • @MrArdo-branch-main
    @MrArdo-branch-main 3 года назад

    nice thankyou

  • @artsytechie2053
    @artsytechie2053 2 года назад

    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!

  • @informationDesigner
    @informationDesigner 3 года назад

    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?

  • @yaminasfaxi9318
    @yaminasfaxi9318 3 года назад

    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

  • @rabiaaziza1014
    @rabiaaziza1014 2 года назад

    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!

  • @rashidabbasi6035
    @rashidabbasi6035 3 года назад

    please make a video , Point cloud compression for autonomous driving, Lidar please

  • @rajasekark7131
    @rajasekark7131 7 месяцев назад

    how to save the facial landmarks in FBX format to use in maya or blender

  • @filltech2643
    @filltech2643 2 года назад

    hi i like all your videos . can you make video for face swapping using mediapipe instead of dlib from previous videos

  • @jesusmtz29
    @jesusmtz29 2 года назад

    I see that mediapipe struggles if the video is much longer. I'm trying with imutils. Is opencv a good choice?

  • @DJPapzin
    @DJPapzin 7 месяцев назад

    🎯 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

  • @dhanyaram9870
    @dhanyaram9870 4 месяца назад

    pls upload a video on reenactment(talking face generation)

  • @kshema6175
    @kshema6175 2 года назад

    Can anyone help of how to get z value also? I'm getting 0 for all landmarks

  • @MRBAM
    @MRBAM 2 года назад

    if i run code the face mesh point away from the face why???

  • @dillondiandri
    @dillondiandri 26 дней назад

    sorry but your program on the desc is gone can u send it again?

  • @heshan3728
    @heshan3728 3 года назад

    Very nice video. Can you make a video on facial recognition using the same method? Or another way?

    • @pysource-com
      @pysource-com  3 года назад +1

      I might do that once I have the time to share more videos about the mediapipe library

  • @kailsmith8006
    @kailsmith8006 3 года назад

    Hello . i am student. please help me . I have same errors installing package . please help me

  • @LEO_2822
    @LEO_2822 2 года назад

    Sir, there are no files … Not image and video … Where can I download that ??

  • @MRBAM
    @MRBAM 2 года назад

    its work with image but not with video can you give me solution

  • @NyMo_
    @NyMo_ 2 года назад

    Bella pe Pinolo Fisso ahahaha Grande

  • @kwoksir2869
    @kwoksir2869 3 года назад

    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)?

    • @pysource-com
      @pysource-com  3 года назад +2

      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)

    • @kwoksir2869
      @kwoksir2869 3 года назад

      @@pysource-com Thank you very much!

  • @adityamaladi2473
    @adityamaladi2473 2 года назад

    how to install this on my pycharm 😭

  • @amruthahp5411
    @amruthahp5411 2 года назад

    Could you pls share dataset needed for this project...

    • @pysource-com
      @pysource-com  2 года назад

      No dataset is needed for this project. the source code can be found in the link in the description

  • @yevgeniybondar7509
    @yevgeniybondar7509 2 года назад

    Like