Face Recognition With Python 3.10 Tutorial (Webcam)

preview_player
Показать описание
Learn how you can create some live face detection in Python in less than 20 minutes. We will be using opencv-python, face_recognition, dlib, and some other cool packages!

▶ Become job-ready with Python:

▶ Follow me on Instagram:
Рекомендации по теме
Комментарии
Автор

There is no source code in description !!!

Hackerzx
Автор

Lovely tutorial. I did have a bit of a problem at runtime with small_frame[:, :, ::-1]. I fixed it by calling this, instead: cv2.cvtColor(small_frame, cv2.COLOR_BGR2RGB)

BeckyBenton
Автор

Hi! when run face_encodings in the while, my fps dorops to 3-4, can i imporove or optimize this function?

mrmartin
Автор

such a fun and to-the-point tutorial, thanks so much!

dnedya
Автор

Hi Author Its a great article...
with perfection...

1) If a show a pic consisting of multiple faces then it only detect just one face at a time...What is the reason for it?
2) Its quite slow as well...

Can you guide on these two aspects.

A great video.

asifrehman
Автор

Firstly an excellent tutorial, very well presented. I had a couple of issues with the code and I offer solutions for these in case anyone has the same. Firstly I added the following line of code to remove the file extension for a nicer display:
name =
# remove the file extension for a neater display
name = name.split('.')[0]

I also found with more than one face it would call everyone by the same name. This is because the zip line repeats until the shortest tuple is completed then stops. If a single face is in frame for a while before a second face appears only the first will be annotated. To fix this I reversed the names and location lists to give a last in first out solution. Change line to: for (top, right, bottom, left), name in zip(reversed(self.face_location), reversed(self.face_names)):
I hope this helps someone.

richieT
Автор

thank you so much for such a huge effort, when trying recognition, it is lagging too much, do you have any idea about what is the problem? thanks in advance

abdulrahmansabri
Автор

Is it possible to dynamically add photos to the faces folder? For instance, if a face is detected that is not recognized, could the user possibly be promoted to take a screenshot and that picture will be saved to the faces folder and encoded like the others?

cgsoldier
Автор

hey there, i love your tutorial because it is simple and easily understandable.. one question? can we make this as an .exe file and then install it through setup.exe in other computer?

zhilaanrusmawan
Автор

I changed the line and it worked for me
rgb_small_frame = small_frame[:, :, ::-1]

rgb_small_frame = cv2.cvtColor(small_frame, cv2.COLOR_BGR2RGB)

MrNosiks
Автор

getting this error

error: subprocess-exited-with-error
× Building wheel for dlib (pyproject.toml) did not run successfully.

dotnet
Автор

Mine its saying dlib cannot be downloaded because there's no project.toml-based projects. Please help😢

georgejere
Автор

Apparently the source code mentioned near 5:00 in video is well hidden. Otherwise, the video is informative. At 75, I like to follow along with the code. Sometimes I do try the code and sometimes not. The source code does make it handy for me when it isn't so well hidden.

nelsongibson
Автор

sir, when i try to running that using my web cam, nothing happen, camera on but no windows show the face recognition, the pop up windows doesn't show image read well

rezahasny
Автор

Thank you very much for the tutorial! I have a question, is it still accurate for 50 faces? I am working on a project that needs to distinguish the unknown faces but I find it hard to do because of many encoded faces

joniebech
Автор

Instead of web cam I wants to use live desktop screen to detect objects, is it possible? And show in desktop rectangle itself?

PANDURANG
Автор

Hi, I get an error when trying to run the script IndexError: list index out of range. The script finds 2 faces in the faces dir. What can I do solve this error? Thank you in advance

henriklauridsen
Автор

You're amazing. No one has ever described it so easily and so succinctly. Thank you.

가라세상의미사일공방
Автор

Great presentation - very much appreciated. I am a noob hack messing with python and esp32-cams. Any easy/quick suggestions/references for using this with multiple video streams?

Kiotenhariyo
Автор

I'm on Windows, and the program runs very slowly and laggy when it detects my face. Is there a way to improve the performance? I notice that your Mac system is running very smoothly. Maybe it's an OS thing? I hope you can reply, thank you~!!

ddesmond