Detect 468 Face Landmarks in Real-time | OpenCV Python | Computer Vision

Поділитися
Вставка
  • Опубліковано 8 лип 2024
  • In this video, we are going to learn how to detect 468 different landmarks on faces. We will use the model provided by google that runs in real-time on CPU and mobile devices.
    🚀🚀 My Urdu/Hindi AI UA-cam Channel 🚀🚀
    / @murtazahassan01
    Download Code:
    www.computervision.zone/cours...
    Premium Courses:
    ✔️ Computer Vision Game Development Course:
    bit.ly/3ttLZ2s
    ✔️ Computer Vision with Arduino Course:
    bit.ly/3wzLB4m
    ✔️ Advanced Drone Programming Course:
    bit.ly/3qs3v5g
    ✔️ Learn to Build Computer Vision Mobile Apps:
    bit.ly/3uioY1J
    ✔️ Jetson Nano Premium Course:
    bit.ly/3L8uIlF
    ⚙️⚙️⚙️--My Gear - ⚙️⚙️⚙️
    👉 Complete Gear 💈: www.computervision.zone/tech-...
    👉 My PC Specs 🖥️: www.computervision.zone/tech-...
    👉 My Video Shooting Gear📽️ : www.computervision.zone/tech-...
    👉 My Laptops 💻: www.computervision.zone/tech-...
    👉 Educational Products🧑‍🎓: www.computervision.zone/tech-...
    👉 UA-cam Starter Kit 🔴: www.computervision.zone/tech-...
    Follow Me:
    TikTok: bit.ly/3Vo76OQ
    Facebook Group: bit.ly/3irDcb7
    Discord: bit.ly/3JvyxAM
    Facebook Page: bit.ly/3IvpU7W
    Instagram : bit.ly/3NdGME3
    Website: bit.ly/3ICFTS0
    Github: bit.ly/3woU6PS
    #ComputerVision
    #OpenCV
    #CVZone

КОМЕНТАРІ • 168

  • @byxlettera1452
    @byxlettera1452 3 роки тому +3

    Well done as usual. I found it the best way to start with face mesh. Clear and accurate. Thanks

  • @nmb-u-
    @nmb-u- 2 роки тому +2

    The best tutorial i have seen on this subject, not too long nor too technical, i didn't knew i could inspect a code source by ctrl clicking it, and you have great best practices! thank you :^D

  • @diegovalentino2083
    @diegovalentino2083 2 роки тому +1

    Wow, this tutorial is absolutely awesome! I never thought I could ever learn to do something like this. Thanks!

  • @mflow502
    @mflow502 3 роки тому +1

    Pretty cool, I am going to integrate this to my cpp application.

  • @Jean-Naimar
    @Jean-Naimar 3 роки тому

    All your tutorials are great!
    Thanks

  • @temyraverdana6421
    @temyraverdana6421 3 роки тому +1

    Amazing video. Thanks

  • @arunappu3790
    @arunappu3790 2 роки тому

    your videos are very good and have a wide message thank you

  • @arjunjeeyan1501
    @arjunjeeyan1501 3 роки тому +1

    Mind blowing amazing such thing your supper cool ma'am

  • @mh47saiyyad21
    @mh47saiyyad21 Рік тому

    Extremely excellent video thankyou sir.

  • @aleksandraszczepanska1815
    @aleksandraszczepanska1815 Рік тому

    amazing tutorial! thank you!

  • @muhammadnajamulislam2823
    @muhammadnajamulislam2823 2 роки тому +6

    AOA Bro
    FACE_CONNECTIONS is Replaces by FACEMESH_CONTOURS

  • @kshema6175
    @kshema6175 2 роки тому +1

    Wow, precise lecture. How can we know which number represents which landmark?

  • @penjualanwilayah1826
    @penjualanwilayah1826 2 роки тому

    thanks bro regards from Syria

  • @mh47saiyyad21
    @mh47saiyyad21 Рік тому

    Great knowledgeable video thankyou sir.

  • @dudeimfake
    @dudeimfake 3 роки тому

    Hello sir you are doing great
    Try to show us how to remove noise and blur in an image

  • @pamarthikanakaraja9812
    @pamarthikanakaraja9812 3 роки тому

    Super tutorial bro

  • @navneetnsit09
    @navneetnsit09 2 роки тому

    Great tutorial as usual. It would be really helpful for users if you could share the code.

  • @dilberismail
    @dilberismail 3 роки тому

    Great job bro 👌👍

  • @imtayyabhayat
    @imtayyabhayat Рік тому +1

    @ 12:30 FACE_CONNECTIONS has been renamed to FACEMESH_CONTOURS

  • @jordanellapin5655
    @jordanellapin5655 2 роки тому +2

    Hey! It's quite impressive!
    I noticed the framerate can be quite low when you print the positions. So if I wanted get a stream video from a GoPro to send this data for example via OSC to Unity, I think I won't be able to animate a face at a high frame rate. I'm wondering because I currently use the iPhone 11 to animate a face at 60fps it's super fast but you MediaPipe demo has much more information that could be useful for facial motion capture. We may want to have at least 2 separate videos to capture 2 actors in live from a live stream from a GoPro.
    Do you have an opinion about that please? Thanks for the video it was really good to understand the process!

  • @ganeshgshet7797
    @ganeshgshet7797 3 роки тому +1

    Fan of u broii ❤️❤️

  • @makelabsindia3092
    @makelabsindia3092 3 роки тому

    nice sir and thank u

  • @theprogrammer8315
    @theprogrammer8315 3 роки тому +3

    Can we use this to compare faces like for attendance system?

  • @miku6921
    @miku6921 Рік тому +1

    if anyone has issues and is using new version of mediapipe, change 'mpDraw.draw_landmarks(img, faceLms, mpFaceMesh.FACE_CONNECTIONS)' to 'mpDraw.draw_landmarks(img, faceLms, mpFaceMesh.FACEMESH_CONTOURS)' worked for me as FACE_CONNECTIONS has been removed from mp.solutions.face_mesh

  • @juniasarias901
    @juniasarias901 3 роки тому

    You are the Best !!!!!

  • @adesojialu1051
    @adesojialu1051 2 роки тому

    Thanks boss, u r really a boss

  • @pastuh
    @pastuh 8 місяців тому +1

    Really nice video :) Looks simple :X
    at 20:16 better enumerate, because later will be needed

  • @actionkey8042
    @actionkey8042 3 роки тому

    Murtaza's Workshop - Robotics and AI
    aweSOMME)

  • @sakurazzz289
    @sakurazzz289 2 роки тому

    Thank you for your share!I have a problem,what points are about lips,and what point about eyes.Can i find a sequence map about these point corresponding parts?

  • @mhmdfudhail383
    @mhmdfudhail383 3 роки тому +2

    Make a video about facial expressions detection

  • @PKTTV848
    @PKTTV848 3 роки тому

    I am going to integrate this to my

  • @mohamedaitmouali895
    @mohamedaitmouali895 2 роки тому

    thank you for your best explication you are the best how can i know landmarks of each position in the face like eye or mouth

  • @leoyin2098
    @leoyin2098 3 роки тому

    thank you for your sharing. will you plan to have course about how to run this on web ?

  • @imtayyabhayat
    @imtayyabhayat Рік тому +2

    @ 25:15 3rd param is now 4th param, and at 3rd place there is new param called `refine_landmakrs` with a boolean value, so the whole function of FaceMesh will become like this
    FaceMesh(
    static_image_mode=True,
    max_num_faces=2,
    refine_landmarks=True,
    min_detection_confidence=0.5)

    • @user-ur3qj5vg5g
      @user-ur3qj5vg5g Рік тому +1

      thanks man, your update help me solve the problem

    • @pastuh
      @pastuh 8 місяців тому +1

      Yep, appeared new parameter in FaceMesh MediaPipe, this solved problem

  • @user-ow1he8qm2h
    @user-ow1he8qm2h 3 роки тому +4

    Cool lessons))) Excellent work, explanation is excellent even for russian ukrainian speakers)

    • @username-dh4tq
      @username-dh4tq Рік тому

      .fill
      .folder
      .file
      :
      .pop
      fill. .file
      fill. folder
      file. .fill
      fill. .track
      fill. .slam
      fill. .pack
      fill. .bank
      fill. .dunk
      k. .net
      k. .txt
      k. .dot
      k. .hot
      k. .rod
      k. .pix
      k. .dis
      fill. .pop
      fill. .box
      fill. .cap
      fill. .vex
      fill. .bug
      fill. .cell
      fill. .lite
      fill. .txt
      fill. .url
      fill. .alt
      fill. .life
      fill. .fox
      fill. .cell
      fill. .poll
      pop. .fill
      folder. .fill
      fill. .fill

  • @SUNYBOI
    @SUNYBOI 3 роки тому +1

    Amazing

  • @CabrioDriving
    @CabrioDriving Рік тому

    Can you adjust settings to interpolate landmarks between frames, so there is no jitter of points of interest on face?

  • @bharatbhaishah8406
    @bharatbhaishah8406 3 роки тому

    How do you get such amazing ideas 💡

  • @pastuh
    @pastuh 8 місяців тому

    Interesting if number 1 (nose) is the main "static" point.. If yes, it can be helpful to measure each face zones

  • @sigmaphysicsclasses3232
    @sigmaphysicsclasses3232 Рік тому

    Good luck sir

  • @viswatejvarma7792
    @viswatejvarma7792 3 роки тому +10

    Fan of u bruh.. I have a question to visualise neural networks that we have developed to show in 3d?

  • @patrickknows2296
    @patrickknows2296 3 роки тому

    I hope you can help us operate our start up company and create beautiful products

  • @mohakbajaj4235
    @mohakbajaj4235 3 роки тому

    Sir can we use this to augment faces over landmark positions

  • @murtazaburhani4022
    @murtazaburhani4022 3 роки тому +2

    You really need a good cpu and gpu for this. My pc give 30 fps max of just drawing and 4 fps when printing the points lol.

  • @TheRealFrankWizza
    @TheRealFrankWizza 3 роки тому +2

    You should do a tutorial on installing mediapipe on the jetson nano.

  • @OZtwo
    @OZtwo 3 роки тому

    You are so lucky that you can play with all this! I can't even get my stupid Jetson Nano up and running fully! :)

    • @zeshan2973
      @zeshan2973 3 роки тому

      That's just an excuse. Many people don't even have Jetson Nano. But they keep doing this stuff

    • @OZtwo
      @OZtwo 3 роки тому

      @@zeshan2973 Well yeah but still the only issue I'm having is I can't get mine to update to the latest version without needing a second system to flash it. Soooo..as I try to fix mine I'm watching this very COOL video here.

    • @zeshan2973
      @zeshan2973 3 роки тому

      @@OZtwo best of luck :)

    • @OZtwo
      @OZtwo 3 роки тому

      @@zeshan2973 ty, finding linux sucks. :)

  • @ahmedgr6392
    @ahmedgr6392 3 роки тому

    Thank you for you amazing videos ! I also tried to install mediapipe on my jetson nano but no luck , I tried for 3 days but couldn't find a solution

    • @abquix
      @abquix 3 роки тому

      I did it on my jetson nano. I installed latest mediapipe and latest other libs that mediapipe wants, like a bazel ...

  • @dhcocos
    @dhcocos 2 роки тому

    Marvelous job! If i wanted to change this to real time capture (from a camera for example) what should i change?

  • @dracleirbag5838
    @dracleirbag5838 3 роки тому

    Can you put some machine learning and see if you need that many spots so you can reduce processes and ram use. It depends if your using it for just detection or emotions or recognition.

  • @danielrotnemer2564
    @danielrotnemer2564 3 роки тому

    Oh this is what i waited for! Is it possible to make this kind of face detection for Android? thank you so much for your videos!

    • @dipeshdebnathltd
      @dipeshdebnathltd 3 роки тому +1

      google.github.io/mediapipe/getting_started/android.html
      go thru the docs here..it is given

  • @securebrowser1479
    @securebrowser1479 2 роки тому +1

    Wow nice! Do you have some sort of image with the layout of each point on the face and their index?

    • @swedishpsychopath8795
      @swedishpsychopath8795 Рік тому

      I'm trying to find it as well. Did you find it? For some reason it looks like google is trying to hide it. I can't find it anywhere and it kind of is the most important piece of information to have if you are going to use this framework to do your own stuff.

  • @Mindblowingclipss
    @Mindblowingclipss 3 роки тому +2

    Hi i have a question!
    How Can i Print the x, y, z coordinates of one exact Landmark of the face? For Exempel : i want to Print the Position of my eyebrows. How do i geh this?

  • @Amankumar-xb7gv
    @Amankumar-xb7gv 3 роки тому

    Sir plz make a video on How to use mediapipe library in raspberry pi

  • @user-to5cs8ck7f
    @user-to5cs8ck7f Рік тому

    Well ...can I use the landmarks data in 3d design software such as blender,3ds max , maya...etc

  • @keshav2136
    @keshav2136 3 роки тому

    Can u make a tutorial on MediaPipe?

  • @ruseboy
    @ruseboy 2 роки тому

    Is there anyway of recording and exporting the face mesh data?

  • @gastonchevalet7342
    @gastonchevalet7342 3 роки тому

    I am a big fan Murtaza and I love your work.
    Have ever tried to use Rust for computer vision using the openCV bindings ?

  • @ErdosainNueve
    @ErdosainNueve 3 роки тому

    I could use this to know if I'm biting? I mean, do you think it would be possible detecte bruxism? Because, i can have the face relax around the mouth, and when the chin get close to the nose, then... I'm biting. It would be possible or is not the sufficient accurately? Thanks

  • @deependixit4214
    @deependixit4214 2 роки тому

    Amazing!! Can anyone please tell me how can I set max_num_faces to infinity. I want to get all the faces from video. Thank you!!

  • @Akshit21
    @Akshit21 3 роки тому +4

    can you make mood detection by this project? if yes then please make one cause it will be more accurate with this than other videos on youtube using different method

    • @imalex4543
      @imalex4543 3 роки тому +2

      That would require a trained model probably, and I don't think mediapipe provides one. Of course you could do something like `if the lips are higher than some other position, then say that the person is happy` but that would not be too accurate.

    • @Akshit21
      @Akshit21 3 роки тому +2

      @@imalex4543 but I'm trying to say that if we can use this model with any trained model then?

    • @imalex4543
      @imalex4543 3 роки тому +2

      @@Akshit21 I don't quite understand what you mean. Look, I had done research on how to make an emotion/mood detector in python, and could not find a module or trained model for it. Essentially, what you need to do is get a lot of pictures of happy faces and "feed" them to a "machine" that you have programmed in order for it to understand what a happy face is. Then it can detect the happy mood from any face.
      Edit: that is called Machine Learning or Deep Learning.

    • @marsrocket
      @marsrocket 3 роки тому +1

      Just google emotion detection. There are a bunch of examples of how to do it with OpenCV and keras.

  • @fantomperfide5170
    @fantomperfide5170 2 роки тому

    Hi is there a way I can add a 3D face mask on the face mesh in order to make face filters

  • @andihaki
    @andihaki 2 роки тому

    can we detect only lips? i mean, can we make custom model for detecting lips keypoint / landmarks? thank you

  • @kushandakshitha1682
    @kushandakshitha1682 3 роки тому

    Can we build a Facial Recognition application by using these land marks ?

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

  • @AndrewStifora
    @AndrewStifora 3 роки тому +4

    Thank you so much for your python opencv videos. Where can I get the sample videos for this project?

    • @tanishqsinghanand5383
      @tanishqsinghanand5383 3 роки тому

      Hey , if u have fond them pls share .

    • @nestorbao2108
      @nestorbao2108 2 роки тому

      Also looking for the sample videos. Do you have any update on this?

  • @controlrazuma
    @controlrazuma 2 роки тому

    How to collect detailed color data from each coordinate of the face?

  • @94142456
    @94142456 3 роки тому

    Bro please share pycharm configuration settings

  • @muhammadafifhidayat2566
    @muhammadafifhidayat2566 3 роки тому

    Can we add the number of the nodes more than 468?

  • @ilikamitra3429
    @ilikamitra3429 3 роки тому

    Hey can we make the face recognition system with this ??
    🤔🤔🤔

  • @trinishmario1584
    @trinishmario1584 9 місяців тому

    which python version you are using?

  • @c.jacquelin6523
    @c.jacquelin6523 3 роки тому

    Is it possible to use this model in C++ ?

  • @Cyb3r-Kun
    @Cyb3r-Kun Місяць тому

    hay, this is an amazing tutorial and I thank you for making it.
    but I want to ask if you could make a video on how to get blendshapes with mediapipe?
    I would really appreciate it if you did
    also I'm subscibing :)

  • @arjyabasu1311
    @arjyabasu1311 3 роки тому

    How can I detect the angle of rotation of faces ??

  • @wgalloPT
    @wgalloPT 2 роки тому

    QUESTION: Why is it necessary to convert to pixels? It is already giving you coordinates....im sorry if its a dumb question...

  • @Saman6633
    @Saman6633 3 роки тому

    best code

  • @pierluigibuongiorno9464
    @pierluigibuongiorno9464 2 роки тому +3

    1. (arg0: bool) -> mediapipe.python._framework_bindings.packet.Packet how can i solve it

  • @CharmFlex
    @CharmFlex 3 роки тому +1

    Is there any practical project that can be made of this?

    • @MubashirAR
      @MubashirAR 3 роки тому

      Maybe it's possible to use this data to animate characters in an animating software like blender?

  • @ducnguyen4973
    @ducnguyen4973 Місяць тому

    Thank you sir. Can you teach me how to run this facemesh on GPU? Does it automatically detect the GPU or any setting needed?

  • @hanns-erikquessel9102
    @hanns-erikquessel9102 3 роки тому

    I want to install mediapipe on a Raspberry Pi 4 but it does not work : I always get the error;
    --> Could not find a version that satisfies the requirement mediapipe (from versions: )
    No matching distribution found for mediapipe
    Can YOU help me? What is my mistake ?

  • @abdulrehmanajmal7200
    @abdulrehmanajmal7200 3 роки тому

    can you please provide data set :D

  • @rahimesilpagar3588
    @rahimesilpagar3588 6 місяців тому

    Hello, I could not run this project with rpi4. Could you help? (32 bit)
    ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings'

  • @vipparthivijayababu8620
    @vipparthivijayababu8620 3 роки тому

    which editor are u used to develop this plzz!! reply me

  • @ItsKruski
    @ItsKruski Рік тому

    How do we download this software?

  • @whatthefunction9140
    @whatthefunction9140 Рік тому

    What can you do with this once detected?

  • @maaitrayodas5630
    @maaitrayodas5630 3 роки тому

    how will I download the videos?

  • @yolodiy4242
    @yolodiy4242 2 роки тому

    What IDE are you using? thanks

    • @yolodiy4242
      @yolodiy4242 2 роки тому

      saw your other vids, it's pycharm :D

  • @thelaughingwood
    @thelaughingwood 3 роки тому +1

    Where can we get sample videos used in this video?

    • @nestorbao2108
      @nestorbao2108 2 роки тому

      Any update? Have you found the sample videos?

    • @thelaughingwood
      @thelaughingwood 2 роки тому

      @@nestorbao2108 nope, i used real-time stream from my laptop's camera

  • @sohagmiah9839
    @sohagmiah9839 3 роки тому

    How can I unlocked any projects by face detecting show us this project plz

  • @flamelf
    @flamelf 3 роки тому

    I can't find the course on your website, is that still coming?

  • @kumarshivendu6011
    @kumarshivendu6011 3 роки тому +1

    Can you please please make videos on how to create facial beautification(smooth skin, big eyes, skin tone) apps ? 😇

  • @pierluigibuongiorno9464
    @pierluigibuongiorno9464 2 роки тому

    where i can found a videos?

  • @Dino90554
    @Dino90554 3 роки тому

    swpas🙏

  • @arithene
    @arithene 2 роки тому

    How to open file in python IDLE?

  • @danielrotnemer2564
    @danielrotnemer2564 3 роки тому +1

    Do someone have any idea on how to use that for android apps?

  • @ran_css
    @ran_css Рік тому

    hello i want to make like u but with more Signs like if this human is happy or worried u can help me ?

  • @nguyenanhnguyen7658
    @nguyenanhnguyen7658 3 роки тому

    What is it good for really ?

    • @flamelf
      @flamelf 3 роки тому

      I'm using a slower version of this for modeling of 3D characters, but it is also how the snapchat filters and other overlays work

  • @hungotran8094
    @hungotran8094 2 роки тому

    I have an error:
    AttributeError: module 'mediapipe.python.solutions.face_mesh' has no attribute 'FACE_CONNECTIONS'
    How i can fix ?
    Of course I installed all the libraries.

    • @zan9815
      @zan9815 2 роки тому +2

      They changed the attribute name to FACEMESH_TESSELATION

    • @hungdotran3137
      @hungdotran3137 2 роки тому

      @@zan9815 ohhhh!!!! Thanks for your help

    • @brazprop
      @brazprop 2 роки тому +1

      FACEMESH_TESSELATION / FACEMESH_CONTOURS will work.

  • @Fnta_discovery
    @Fnta_discovery 2 роки тому

    i'm confused because you repeate certain senteces twice example: drawSpec,drawSpec Why

  • @PradeepSharma-qp7wf
    @PradeepSharma-qp7wf 2 роки тому

    how to save results in csv file

  • @langeo3279
    @langeo3279 2 роки тому

    Pas de traduction française, dommage cela à l'air vraiment passionnant.

    • @FauziNomad
      @FauziNomad 3 місяці тому

      si vous regardez la vidéo sur un ordinateur, vous pouvez aller dans la description et essayer de trouver un bouton qui dit "afficher la transcription", il sera affiché à droite, vous pouvez copier la transcription et Google traduire et vous comprendrez ce que dit l'orateur...