Тёмный

Face Recognition With Python 3.10 Tutorial (Webcam) 

Indently
Подписаться 194 тыс.
Просмотров 107 тыс.
50% 1

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:
www.indently.io
▶ Follow me on Instagram:
/ indentlyreels

Опубликовано:

 

2 авг 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 157   
@Hackerzx
@Hackerzx 9 месяцев назад
There is no source code in description !!!
@user-by3zr4oz1s
@user-by3zr4oz1s Год назад
You're amazing. No one has ever described it so easily and so succinctly. Thank you.
@dnedya
@dnedya Год назад
such a fun and to-the-point tutorial, thanks so much!
@shahnewazparvez4502
@shahnewazparvez4502 Год назад
Huge help, learned a lot, thank you.
@mrmartin438
@mrmartin438 Год назад
Hi! when run face_encodings in the while, my fps dorops to 3-4, can i imporove or optimize this function?
@cgsoldier4196
@cgsoldier4196 Год назад
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?
@mpoltav2
@mpoltav2 Год назад
Cool lesson. Thanks!
@RashedUlIslam-zx5fy
@RashedUlIslam-zx5fy Год назад
It's Awesome!! You are great Boss!! ❤❤
@joniebech
@joniebech Год назад
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
@abdulrahmansabri4547
@abdulrahmansabri4547 Год назад
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
@zhilaanrusmawan7913
@zhilaanrusmawan7913 Год назад
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?
@shreejitnair6594
@shreejitnair6594 Год назад
great tutorial!!❤
@Kiotenhariyo
@Kiotenhariyo Год назад
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?
@rezahasny9036
@rezahasny9036 Год назад
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
@tareworku
@tareworku 6 месяцев назад
thanks for the tutorial. it was very helpful.
@henriklauridsen9686
@henriklauridsen9686 Год назад
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
@shrenath4476
@shrenath4476 Год назад
thanks dude it works perfectly
@RnRSolutions-xp2nh
@RnRSolutions-xp2nh Год назад
are there any specific version that we need to install Eg : Python , opencv?
@drewchua6861
@drewchua6861 Год назад
hello, how can I add some checker in the form of a txt or csv file?
@namtruong4071
@namtruong4071 Год назад
I encountered some problems when using this system. If the people are captured in the dataset, face detection is correct. But when there is an unknown person who is not captured in the dataset, face detection is not detected unknow label, it show name of someone in dataset. Can you give me solution ?
@BeckyBenton
@BeckyBenton Год назад
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)
@ptk_trindade
@ptk_trindade Год назад
I had the same problem, thanks!
@ahmadyasser0
@ahmadyasser0 Год назад
Same 🤝
@paulmanoha9678
@paulmanoha9678 11 месяцев назад
Thank you ! You saved me !
@Badoofhmz
@Badoofhmz 10 месяцев назад
can u share the source code I m having trouble running in mine
@AbhishekSingh-xg3zj
@AbhishekSingh-xg3zj 3 месяца назад
Thanks a lot Becky. I wasn't getting any fix for this and I got it from you. Thanks a lot once again.
@PANDURANG99
@PANDURANG99 Год назад
Instead of web cam I wants to use live desktop screen to detect objects, is it possible? And show in desktop rectangle itself?
@VojtaGaming25
@VojtaGaming25 11 месяцев назад
can i make it that when the program sees a new face it saves it and then when it sees it again it remembers it perhaps using a database i dont know?
@user-ds6fs2um7b
@user-ds6fs2um7b Год назад
Hi bro which algorithm you used?
@swiftt3942
@swiftt3942 Год назад
where is the code in the description?
@asifrehman4214
@asifrehman4214 Год назад
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.
@dotnet8925
@dotnet8925 Год назад
which version python are you using ?
@ddesmond4435
@ddesmond4435 9 месяцев назад
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~!!
@krishnanaik24
@krishnanaik24 Год назад
thank u so much bro heartlyllove u
@loanpia7718
@loanpia7718 2 года назад
hi, your tutorial so good, I hope the next time you gonna post up about face_Encoding and compare them in the database...~
@Tifevibez
@Tifevibez Год назад
thiis really nice. i intend to put this on A web aopp as interface. any idea how?
@user-qs1bh6yr3u
@user-qs1bh6yr3u 11 месяцев назад
does it works with 3.11 python version?
@flm_thunder.8597
@flm_thunder.8597 Год назад
will this work on LFW datasets?
@erikrex0073
@erikrex0073 2 года назад
your tut are soooooooooooooo cool I love
@Indently
@Indently 2 года назад
Thanks buddy!
@dedisupardi2815
@dedisupardi2815 Год назад
Cool 👍
@omdelvadia8903
@omdelvadia8903 11 месяцев назад
Hello. I found your video is very important. Thank you for the tutorial. Now my question is I don't want to recognize the static images like photo copy or something else that is static because any person can recognize the face by scanning the static photo copy. So, is there any way to recognize only the live face? Like in your case, obama's photo is recognized but it should not be because any person can get the photo of obama from internet and he/she can just scan it.I hope you understood my question.
@enormousearl8838
@enormousearl8838 5 месяцев назад
So can you only train it on one image per unique face? You can't give it multiple angles of the same face to help it recognize it better?
@AhmadBakdash07
@AhmadBakdash07 2 года назад
Using Tensorflow isn't better than python face dedication dependencies?
@richieT737
@richieT737 7 месяцев назад
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 = self.known_face_names[best_match_index] # 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.
@rayendammak7303
@rayendammak7303 6 месяцев назад
can you provide us with the code , thanks :)
@morbid1134
@morbid1134 6 месяцев назад
You said "firstly" twice and had no "secondly."
@yashakayash4888
@yashakayash4888 Год назад
can we implement this in website? if yes..how to?
@anushamarts
@anushamarts Год назад
Getting index out of range error can someone help?
@shaikahalkandri3092
@shaikahalkandri3092 Год назад
Thank you so much , everything work with me from the first time without any error 😍
@sunitsawant885
@sunitsawant885 5 месяцев назад
Can you please help me too? I'm having couple of issues
@savagemonkey501
@savagemonkey501 Год назад
Hey great video! I wrote it on my machine and it worked, just one question tho - I tried to convert the same program to do face detection on a video file instead of the camera stream, but the video plays extremely slowly when its running in the face detection program, like 1/50th the normal speed. Is there anyway you know of to fix this?
@RnRSolutions-xp2nh
@RnRSolutions-xp2nh Год назад
what versions of python and opencv did you use
@mhdtadeveloper
@mhdtadeveloper 11 месяцев назад
Run recognition process in other thread and that's it
@techyoungster2713
@techyoungster2713 Год назад
Can we run this code on COLAB???
@yourname-scorpion
@yourname-scorpion 3 месяца назад
thank you so much! it's worked for me.. however, i need to update some config to adapt from my laptop..
@AhmadBakdash07
@AhmadBakdash07 2 года назад
Can you make it to detect what is on the screen like a dog, cat, human etc. 🤔
@mkarthikeyan9817
@mkarthikeyan9817 10 месяцев назад
How to train the model bro for a set of images
@rizafajardo3586
@rizafajardo3586 11 месяцев назад
Hello, I followed your tutorial, but my camera is capturing my face with noticeable lag. Could this be due to my camera's high 1080-pixel resolution, also I'm using the "hog" model for the face.location function?
@MSneberger
@MSneberger 3 месяца назад
Same here even after I commented out "self.process_current_frame = not self.process_current_frame"
@VietnameseBoii
@VietnameseBoii Год назад
I got this: cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src esize.cpp:4062: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize' in line 51
@askelardd
@askelardd 5 месяцев назад
eu consegui resolver esse erro agorinha
@VietnameseBoii
@VietnameseBoii 5 месяцев назад
@@askelardd What language is that...
@arnoldkee117
@arnoldkee117 7 месяцев назад
Looks like it should run, but when I run the selection from a MacBook, the program doesn't launch, nor do I get an error message.
@MrNosiks
@MrNosiks Год назад
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)
@PANDURANG99
@PANDURANG99 Год назад
How to make web application, where to store data
@Austin-vz9rt
@Austin-vz9rt Год назад
why do i get "cannot find reference 'videocapture' in '__init__.py | __init__.py' " i had to downgrade opencv to get other references to cv2 operational. It didn't fix the video capture issue though. using windows 11, x64 if that makes a difference.
@Austin-vz9rt
@Austin-vz9rt Год назад
i have no idea what fixed this because i did a million things, but it works now. i downgraded opencv, numpy and imported cv2 as cv2 for starters. i also had to clear open cv cache with some pip command that i already forgot lmao
@georgejere2306
@georgejere2306 Год назад
​@@Austin-vz9rt hey man, can you please help me on this issue😢
@Sebastian.200x
@Sebastian.200x Год назад
Can you make a face recognition tutorial using flask?
@georgejere2306
@georgejere2306 Год назад
Mine its saying dlib cannot be downloaded because there's no project.toml-based projects. Please help😢
@CodeOmega_
@CodeOmega_ Год назад
hey, i got the same issue. Did yours get solved?
@coordinator3039
@coordinator3039 7 месяцев назад
self.faceEncodings = face_recognition.face_encodings(rgbSmallFrame, self.faceLocations) I keep getting a type error
@user-rh5io1hj4y
@user-rh5io1hj4y 9 месяцев назад
pls where is the source code i cant find it anywhere
@LaurynGrosshans
@LaurynGrosshans Год назад
I tried to add a face into the folder and got the error IndexError: list index out of range. whats happening?
@shreejitnair6594
@shreejitnair6594 Год назад
i had also gotten the same error, its because it can't locate the face from your database of photos. Try uploading a clear photo with a clear background.
@farukhkhan659
@farukhkhan659 Год назад
When i tried to add a face, it says permission denied. How to tackle that issue?
@remixowlz
@remixowlz 4 месяца назад
my cv2 keeps crashing?
@valentinlorenz4444
@valentinlorenz4444 Год назад
Great video, but I have a problem: my video crashes as soon as a face gets detected :( Im told that the line "self.face_encodings = face_recognition.face_encodings(rgb_small_frame, self.face_locations)" is the problem but i have no clue why please help because i really want this programm to work because its pretty cool
@Loopyengineeringco
@Loopyengineeringco Год назад
Same problem... 😢
@Loopyengineeringco
@Loopyengineeringco Год назад
if you change "rgb_small_frame" to just "small_frame" on that line, it works. Not 100% sure why, maybe Python doesn't like the rgb_small_frame = small_frame[:, :, ::-1] bit at the end '::-1'
@glmbrt2396
@glmbrt2396 Год назад
​@@Loopyengineeringco you are right i had the same problem, i solved by changing "rgb_small_frame = small_frame[:, :, ::-1]" with "rgb_small_frame = cv2.cvtColor(small_frame, cv2.COLOR_BGR2RGB)" i hope it will solve your problem as well
@Nithin_3424
@Nithin_3424 11 дней назад
My webcam sometimes Not responding how can i solve the problem. but the cam working good.the recognition is strucked sometimes
@venicegolocino5281
@venicegolocino5281 8 месяцев назад
very cool video, Please make a tutorial how to install dlib in windows 10 and specify version of python.❤❤
@Daviidscovers
@Daviidscovers 23 дня назад
Did you manage to fix it?
@azizpubg1161
@azizpubg1161 9 месяцев назад
hi i just want to ask how can fix this because im using window 10 "in run recognition small frame = cv2.resize(frame, (0, 0), fx=0.25, fy=0.25) cv2.error: OpenCV(4.8.1) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src esize.cpp:4062: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'"
@askelardd
@askelardd 5 месяцев назад
need help , i fixed
@dotnet8925
@dotnet8925 Год назад
getting this error error: subprocess-exited-with-error × Building wheel for dlib (pyproject.toml) did not run successfully.
@rileymchugh5316
@rileymchugh5316 5 месяцев назад
same error here...
@betaflame3418
@betaflame3418 2 месяца назад
@@rileymchugh5316 you have to import cmake. Google it online if you need specifics on how to do it. I think I got it from some stack overflow page after a few minutes of searching.
@andreeabejan3199
@andreeabejan3199 9 месяцев назад
Hello! What app are you using for writting the code?
@benwilliams5622
@benwilliams5622 7 месяцев назад
top left - pycharm
@abdulrehmananwar6990
@abdulrehmananwar6990 Год назад
Any option how to recongnize only live faces. I want to make attendance management and dont want some one to show other person pic from mobile and mark attendance
@asifrehman4214
@asifrehman4214 Год назад
Have you done any progress on that? I am thinking in the same direction... How to stop somebody showing the picture for the attendance?
@abdulrehmananwar6990
@abdulrehmananwar6990 Год назад
@@asifrehman4214 i am thinking to use windows tab and use this application on windows tab.
@kingsleychenteachesyou5370
@kingsleychenteachesyou5370 Месяц назад
I dont know why but it says that the face recognition module is not able to be found, Even when I try to import the Face Recongition again it still just wont work. And all I did was try the first part. Is this a version issue or is this something else. Please check out this comment if you have time. Thanks!
@dailybloggerr
@dailybloggerr 11 месяцев назад
where is code?
@user-mz7kd4ff3v
@user-mz7kd4ff3v 7 месяцев назад
may I have the code/github link ?
@azizpubg1161
@azizpubg1161 9 месяцев назад
small_frame = cv2.resize(frame, (1, 1), fx=0.35, fy=0.35) how to fix this?
@tcc3281
@tcc3281 7 месяцев назад
Thank you so much, my program ran. But it is slow and I want it run fresher and faster. I need the help 😮
@SamAlian
@SamAlian 11 месяцев назад
Great video....i do not see the source code, can you please add a link?
@AVTerrorX
@AVTerrorX Год назад
I'm getting one problem, an error just occurred, saying 'no module named face_recognition'. How can I solve this problem?
@Indently
@Indently Год назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7xbRHiYNSds.html
@georgejere2306
@georgejere2306 Год назад
​@@Indently i also need help. My webcam is starting but not showing the names
@Sternhammer89
@Sternhammer89 8 месяцев назад
Great tutorial, but where's the source code you mentioned ?
@JTKING397
@JTKING397 Год назад
does this work in vs code
@moneymolanta6151
@moneymolanta6151 6 месяцев назад
Mine worked fine in VS Code, only issue I ran into was that rgb_small_frame would crash my system whenever it detected a face. Fixed by rgb_small_frame = cv2.cvtColor(small_frame, cv2.COLOR_BGR2RGB)
@mmtv9511
@mmtv9511 2 месяца назад
Could I take more pictures of me, from different angles to make the detection better, also could I use this to detect or even Recognize my cats? Thanks in advance🎉
@rpc6882
@rpc6882 11 месяцев назад
Hello , where can I download this code?
@dahiya-vc6xs
@dahiya-vc6xs 9 месяцев назад
same
@prajwalbr8223
@prajwalbr8223 Год назад
Getting error in installing dlib
@Name-ke6sf
@Name-ke6sf Год назад
same
@coordinator3039
@coordinator3039 7 месяцев назад
I think you got left and right mixed up as well. Left is y. Right is the width.
@coordinator3039
@coordinator3039 7 месяцев назад
nevermind
@dahiya-vc6xs
@dahiya-vc6xs 9 месяцев назад
Where is source code ?
@eliteturtle6090
@eliteturtle6090 9 месяцев назад
I've been trying to instal dlib for so long!! Ugh
@ayencoscolfield3312
@ayencoscolfield3312 4 месяца назад
hi good video but i cant seem to get the source code guthub link an you please share that. Thanks so much would appreciate
@nidhi320
@nidhi320 8 месяцев назад
I can't find the source code !!!!!!!!!
@benjamincorneliojr.8099
@benjamincorneliojr.8099 5 месяцев назад
the camera opens and working, but after it detects face it stops or lag. HElp
@kungfookeney6628
@kungfookeney6628 4 месяца назад
same any fix?
@donkzilla2802
@donkzilla2802 8 месяцев назад
where is the source code
@SouleymAI
@SouleymAI 6 месяцев назад
I do not see the code in description 😭😭
@rayendammak7303
@rayendammak7303 6 месяцев назад
thank you , i have a small problem the cam opens just for a second then disappear , any solution please :)
@dabeerahmed4802
@dabeerahmed4802 5 месяцев назад
i have the same problem, did you see any solution?
@kungfookeney6628
@kungfookeney6628 4 месяца назад
same problem
@kungfookeney6628
@kungfookeney6628 4 месяца назад
@@dabeerahmed4802 any solution?
@vinnybeastpro8230
@vinnybeastpro8230 Год назад
its not working
@asifrehman4214
@asifrehman4214 Год назад
There is no such thing in the tutorial like Training the model? what else if I Want to use it using a trained model? kindly brief on this.
@Indently
@Indently Год назад
Start by learning machine learning
@asifrehman4214
@asifrehman4214 Год назад
@@Indently Ok I will start to convert it to the machine learning model...thankx for your support.
@coordinator3039
@coordinator3039 7 месяцев назад
Did not work. I keep getting type errors.
@tsilaaviad4675
@tsilaaviad4675 Год назад
I faild to install dlib
@Daviidscovers
@Daviidscovers 23 дня назад
Did you manage to fix it?
@ItsJustSawyer
@ItsJustSawyer Год назад
Dlib will not install for me
@Indently
@Indently Год назад
We’re sorry to hear that you’re facing trouble with this tutorial. We have some suggestions for you: 1. Try watching the tutorial again to check if you missed something (remember that programming languages are strict, and that uppercase & lowercase characters are completely different.) 
 2. If you’re facing an error, try copying and pasting it into the Google search engine, it’s the fastest way to find the best response for the issue you are facing. 
 3. If it’s still too confusing for you, try taking a step back and working on an easier project to try to improve your programming skills before tackling the project in this video. We wish you the best of luck with your project!
@fernandez06
@fernandez06 Год назад
If you still need help, reply.
@ano0os050
@ano0os050 Год назад
@@fernandez06 Still trying to download dlib but it seems impossible to do :(
@fernandez06
@fernandez06 Год назад
@@ano0os050 ok, did you try deleting and downloading it again?
@VHANSEN
@VHANSEN 6 месяцев назад
its just not detecting my face
@aasutoshverma8164
@aasutoshverma8164 11 месяцев назад
its so annoyed ! it getting eror! not detecting faces . what u skiped in his video nothing is working as excepted
@thaihongkramxa7563
@thaihongkramxa7563 3 месяца назад
source code
@asifrehman4214
@asifrehman4214 Год назад
Sir One Question: After 05 minutes of working; the system stops detecting images...No detection on the camera. Plz can you guide ?
@forschool4136
@forschool4136 Год назад
Can you do this on window 10 ?
@asifrehman4214
@asifrehman4214 Год назад
@@forschool4136 yes ...
@phanlinh9811
@phanlinh9811 Год назад
hay
@bingusxz
@bingusxz Год назад
why does mine pops up and then closes instantly?
@jakebatucan1120
@jakebatucan1120 Год назад
press q
@aidielaiman8964
@aidielaiman8964 Год назад
@@jakebatucan1120 how to press q?
@aidielaiman8964
@aidielaiman8964 Год назад
@@jakebatucan1120 may you reply asap
@freepythoncode
@freepythoncode Год назад
Very very slow 😔 What i can do 🙂
@Indently
@Indently Год назад
We’re sorry to hear that you’re facing trouble with this tutorial. We have some suggestions for you: 1. Try watching the tutorial again to check if you missed something (remember that programming languages are strict, and that uppercase & lowercase characters are completely different.) 
 2. If you’re facing an error, try copying and pasting it into the Google search engine, it’s the fastest way to find the best response for the issue you are facing. 
 3. If it’s still too confusing for you, try taking a step back and working on an easier project to try to improve your programming skills before tackling the project in this video. We wish you the best of luck with your project!
@freepythoncode
@freepythoncode Год назад
@@Indently Thank you so much 🙂❤
@VojtaGaming25
@VojtaGaming25 11 месяцев назад
mine is also very slow did you fix this?
@kusbrololo4220
@kusbrololo4220 10 месяцев назад
Same if you found how to fix this imma search on my part, I noticed that if no face is recognised it isn't slow maybe it comes from something updated @@VojtaGaming25
@cakeas9248
@cakeas9248 Год назад
I expected to write 50 lines...
Далее
Open Source Face Analysis with Python
15:07
Просмотров 49 тыс.
Make A Security Camera With Python
35:58
Просмотров 232 тыс.
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00
Python Face Recognition Tutorial
31:18
Просмотров 625 тыс.
Adam Savage's Latest Flea Market Haul!
11:05
Просмотров 221 тыс.
Live Face Recognition in Python
16:16
Просмотров 152 тыс.
Python Face Recognition (Beginner Tutorial)
12:36
Просмотров 50 тыс.
Why The Windows Phone Failed
24:08
Просмотров 193 тыс.
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00