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
Well done as usual. I found it the best way to start with face mesh. Clear and accurate. Thanks
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
Wow, this tutorial is absolutely awesome! I never thought I could ever learn to do something like this. Thanks!
Pretty cool, I am going to integrate this to my cpp application.
All your tutorials are great!
Thanks
Amazing video. Thanks
your videos are very good and have a wide message thank you
Mind blowing amazing such thing your supper cool ma'am
Extremely excellent video thankyou sir.
amazing tutorial! thank you!
AOA Bro
FACE_CONNECTIONS is Replaces by FACEMESH_CONTOURS
Thank you so much !
THANK YOU!!!
Thanks Bro!!
Wow, precise lecture. How can we know which number represents which landmark?
thanks bro regards from Syria
Great knowledgeable video thankyou sir.
Hello sir you are doing great
Try to show us how to remove noise and blur in an image
Super tutorial bro
Great tutorial as usual. It would be really helpful for users if you could share the code.
Great job bro 👌👍
@ 12:30 FACE_CONNECTIONS has been renamed to FACEMESH_CONTOURS
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!
Fan of u broii ❤️❤️
nice sir and thank u
Can we use this to compare faces like for attendance system?
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
You are the Best !!!!!
Thanks boss, u r really a boss
Really nice video :) Looks simple :X
at 20:16 better enumerate, because later will be needed
Murtaza's Workshop - Robotics and AI
aweSOMME)
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?
Make a video about facial expressions detection
I am going to integrate this to my
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
thank you for your sharing. will you plan to have course about how to run this on web ?
@ 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)
thanks man, your update help me solve the problem
Yep, appeared new parameter in FaceMesh MediaPipe, this solved problem
Cool lessons))) Excellent work, explanation is excellent even for russian ukrainian speakers)
.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
Amazing
Can you adjust settings to interpolate landmarks between frames, so there is no jitter of points of interest on face?
How do you get such amazing ideas 💡
Interesting if number 1 (nose) is the main "static" point.. If yes, it can be helpful to measure each face zones
Good luck sir
Fan of u bruh.. I have a question to visualise neural networks that we have developed to show in 3d?
I hope you can help us operate our start up company and create beautiful products
Sir can we use this to augment faces over landmark positions
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.
You should do a tutorial on installing mediapipe on the jetson nano.
That will be good
You are so lucky that you can play with all this! I can't even get my stupid Jetson Nano up and running fully! :)
That's just an excuse. Many people don't even have Jetson Nano. But they keep doing this stuff
@@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.
@@OZtwo best of luck :)
@@zeshan2973 ty, finding linux sucks. :)
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
I did it on my jetson nano. I installed latest mediapipe and latest other libs that mediapipe wants, like a bazel ...
Marvelous job! If i wanted to change this to real time capture (from a camera for example) what should i change?
cv2.videocapture (0)
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.
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!
google.github.io/mediapipe/getting_started/android.html
go thru the docs here..it is given
Wow nice! Do you have some sort of image with the layout of each point on the face and their index?
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.
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?
Sir plz make a video on How to use mediapipe library in raspberry pi
Well ...can I use the landmarks data in 3d design software such as blender,3ds max , maya...etc
Can u make a tutorial on MediaPipe?
Is there anyway of recording and exporting the face mesh data?
I am a big fan Murtaza and I love your work.
Have ever tried to use Rust for computer vision using the openCV bindings ?
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
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!!
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
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.
@@imalex4543 but I'm trying to say that if we can use this model with any trained model then?
@@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.
Just google emotion detection. There are a bunch of examples of how to do it with OpenCV and keras.
Hi is there a way I can add a 3D face mask on the face mesh in order to make face filters
can we detect only lips? i mean, can we make custom model for detecting lips keypoint / landmarks? thank you
Can we build a Facial Recognition application by using these land marks ?
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)?
Thank you so much for your python opencv videos. Where can I get the sample videos for this project?
Hey , if u have fond them pls share .
Also looking for the sample videos. Do you have any update on this?
How to collect detailed color data from each coordinate of the face?
Bro please share pycharm configuration settings
Can we add the number of the nodes more than 468?
Hey can we make the face recognition system with this ??
🤔🤔🤔
which python version you are using?
Is it possible to use this model in C++ ?
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 :)
How can I detect the angle of rotation of faces ??
QUESTION: Why is it necessary to convert to pixels? It is already giving you coordinates....im sorry if its a dumb question...
best code
1. (arg0: bool) -> mediapipe.python._framework_bindings.packet.Packet how can i solve it
facing same issue
удали 2 последних аргумента в __init__ и при вызове функции убери их
Is there any practical project that can be made of this?
Maybe it's possible to use this data to animate characters in an animating software like blender?
Thank you sir. Can you teach me how to run this facemesh on GPU? Does it automatically detect the GPU or any setting needed?
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 ?
can you please provide data set :D
Hello, I could not run this project with rpi4. Could you help? (32 bit)
ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings'
which editor are u used to develop this plzz!! reply me
Pycharm
How do we download this software?
What can you do with this once detected?
how will I download the videos?
What IDE are you using? thanks
saw your other vids, it's pycharm :D
Where can we get sample videos used in this video?
Any update? Have you found the sample videos?
@@nestorbao2108 nope, i used real-time stream from my laptop's camera
How can I unlocked any projects by face detecting show us this project plz
I can't find the course on your website, is that still coming?
Yes I will add the code soon.
Can you please please make videos on how to create facial beautification(smooth skin, big eyes, skin tone) apps ? 😇
where i can found a videos?
swpas🙏
How to open file in python IDLE?
Do someone have any idea on how to use that for android apps?
Search "Kivy"
hello i want to make like u but with more Signs like if this human is happy or worried u can help me ?
What is it good for really ?
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
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.
They changed the attribute name to FACEMESH_TESSELATION
@@zan9815 ohhhh!!!! Thanks for your help
FACEMESH_TESSELATION / FACEMESH_CONTOURS will work.
i'm confused because you repeate certain senteces twice example: drawSpec,drawSpec Why
how to save results in csv file
Pas de traduction française, dommage cela à l'air vraiment passionnant.
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...