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.
@rayendammak730310 ай бұрын
can you provide us with the code , thanks :)
@morbid11349 ай бұрын
You said "firstly" twice and had no "secondly."
@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 Жыл бұрын
I had the same problem, thanks!
@ahmadyasser0 Жыл бұрын
Same 🤝
@paulmanoha9678 Жыл бұрын
Thank you ! You saved me !
@Badoofhmz Жыл бұрын
can u share the source code I m having trouble running in mine
@AbhishekSingh-xg3zj6 ай бұрын
Thanks a lot Becky. I wasn't getting any fix for this and I got it from you. Thanks a lot once again.
@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)
@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.
@dnedya2 жыл бұрын
such a fun and to-the-point tutorial, thanks so much!
@mrmartin438 Жыл бұрын
Hi! when run face_encodings in the while, my fps dorops to 3-4, can i imporove or optimize this function?
@nelsongibson92312 ай бұрын
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.
@swiftt3942 Жыл бұрын
where is the code in the description?
@가라세상의미사일공방 Жыл бұрын
You're amazing. No one has ever described it so easily and so succinctly. Thank you.
@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
@Sternhammer8911 ай бұрын
Great tutorial, but where's the source code you mentioned ?
@cgsoldier41962 жыл бұрын
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?
@zhilaanrusmawan79132 жыл бұрын
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?
@coordinator303910 ай бұрын
I think you got left and right mixed up as well. Left is y. Right is the width.
@coordinator303910 ай бұрын
nevermind
@shahnewazparvez4502 Жыл бұрын
Huge help, learned a lot, thank you.
@PANDURANG99 Жыл бұрын
Instead of web cam I wants to use live desktop screen to detect objects, is it possible? And show in desktop rectangle itself?
@Kiotenhariyo2 жыл бұрын
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?
@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
@ddesmond4435 Жыл бұрын
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~!!
@tareworku9 ай бұрын
thanks for the tutorial. it was very helpful.
@mpoltav2 Жыл бұрын
Cool lesson. Thanks!
@RashedUlIslam-zx5fy2 жыл бұрын
It's Awesome!! You are great Boss!! ❤❤
@dotnet8925 Жыл бұрын
getting this error error: subprocess-exited-with-error × Building wheel for dlib (pyproject.toml) did not run successfully.
@rileymchugh53168 ай бұрын
same error here...
@betaflame34185 ай бұрын
@@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.
@economia_em_foco_brАй бұрын
If you are using VS Code on Windows, you have to download dependencies
@shrenath4476 Жыл бұрын
thanks dude it works perfectly
@tcc328110 ай бұрын
Thank you so much, my program ran. But it is slow and I want it run fresher and faster. I need the help 😮
@unailopezlozano62482 ай бұрын
Hi, i have been getting this error: RuntimeError: Unsupported image type, must be 8bit gray or RGB image. I cant find a way to fix it beacause if i use RGB format it tells me that it has to be jpg, png...
@destanifountain12 күн бұрын
I had the same issue and I'm STUCK
@enormousearl88388 ай бұрын
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?
@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
@yourname-scorpion6 ай бұрын
thank you so much! it's worked for me.. however, i need to update some config to adapt from my laptop..
@georgejere2306 Жыл бұрын
Mine its saying dlib cannot be downloaded because there's no project.toml-based projects. Please help😢
@CodeOmega_ Жыл бұрын
hey, i got the same issue. Did yours get solved?
@valentinlorenz44442 жыл бұрын
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
@Loopyengineeringco2 жыл бұрын
Same problem... 😢
@Loopyengineeringco2 жыл бұрын
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 Жыл бұрын
@@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
@OormilaRaj8 күн бұрын
Can you do a tutorial for python 3.12
@mmtv95115 ай бұрын
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🎉
@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
@RnRSolutions-xp2nh Жыл бұрын
are there any specific version that we need to install Eg : Python , opencv?
@shreejitnair6594 Жыл бұрын
great tutorial!!❤
@oluchionyeguke Жыл бұрын
pls where is the source code i cant find it anywhere
@VojtaGaming25 Жыл бұрын
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?
@rayendammak730310 ай бұрын
thank you , i have a small problem the cam opens just for a second then disappear , any solution please :)
@dabeerahmed48029 ай бұрын
i have the same problem, did you see any solution?
@kungfookeney66287 ай бұрын
same problem
@kungfookeney66287 ай бұрын
@@dabeerahmed4802 any solution?
@loanpia77182 жыл бұрын
hi, your tutorial so good, I hope the next time you gonna post up about face_Encoding and compare them in the database...~
@venicegolocino528111 ай бұрын
very cool video, Please make a tutorial how to install dlib in windows 10 and specify version of python.❤❤
@Daviidscovers4 ай бұрын
Did you manage to fix it?
@ديارقاسممحمدعزيز Жыл бұрын
Hi bro which algorithm you used?
@shaikahalkandri3092 Жыл бұрын
Thank you so much , everything work with me from the first time without any error 😍
@sunitsawant8859 ай бұрын
Can you please help me too? I'm having couple of issues
@Sebastian.200x Жыл бұрын
Can you make a face recognition tutorial using flask?
@andreeabejan3199 Жыл бұрын
Hello! What app are you using for writting the code?
@benwilliams562211 ай бұрын
top left - pycharm
@arnoldkee11710 ай бұрын
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.
@namtruong40712 жыл бұрын
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 ?
@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
@askelardd8 ай бұрын
eu consegui resolver esse erro agorinha
@VietnameseBoii8 ай бұрын
@@askelardd What language is that...
@dailybloggerr Жыл бұрын
where is code?
@FinaritraAndriam Жыл бұрын
does it works with 3.11 python version?
@omdelvadia8903 Жыл бұрын
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.
@remixowlz7 ай бұрын
my cv2 keeps crashing?
@dotnet8925 Жыл бұрын
which version python are you using ?
@SamAlian Жыл бұрын
Great video....i do not see the source code, can you please add a link?
@biblefilmshow Жыл бұрын
thiis really nice. i intend to put this on A web aopp as interface. any idea how?
@AhmadBakdash072 жыл бұрын
Using Tensorflow isn't better than python face dedication dependencies?
@mkarthikeyan9817 Жыл бұрын
How to train the model bro for a set of images
@drewchua68612 жыл бұрын
hello, how can I add some checker in the form of a txt or csv file?
@SolverMindEdu4 ай бұрын
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!
@erikrex00732 жыл бұрын
your tut are soooooooooooooo cool I love
@Indently2 жыл бұрын
Thanks buddy!
@flm_thunder.8597 Жыл бұрын
will this work on LFW datasets?
@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 Жыл бұрын
what versions of python and opencv did you use
@mhdta_dev Жыл бұрын
Run recognition process in other thread and that's it
@rizafajardo3586 Жыл бұрын
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?
@MSneberger6 ай бұрын
Same here even after I commented out "self.process_current_frame = not self.process_current_frame"
@yashakayash4888 Жыл бұрын
can we implement this in website? if yes..how to?
@coordinator303910 ай бұрын
self.faceEncodings = face_recognition.face_encodings(rgbSmallFrame, self.faceLocations) I keep getting a type error
@AhmadBakdash072 жыл бұрын
Can you make it to detect what is on the screen like a dog, cat, human etc. 🤔
@tsilaaviad4675 Жыл бұрын
I faild to install dlib
@Daviidscovers4 ай бұрын
Did you manage to fix it?
@krishnanaik24 Жыл бұрын
thank u so much bro heartlyllove u
@rpc6882 Жыл бұрын
Hello , where can I download this code?
@dahiya-vc6xs Жыл бұрын
same
@Hgrewssauujdkhvcjjipp Жыл бұрын
Cool 👍
@NurAsifAs-Sulaiman10 ай бұрын
may I have the code/github link ?
@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 Жыл бұрын
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 Жыл бұрын
@@asifrehman4214 i am thinking to use windows tab and use this application on windows tab.
@eliteturtle6090 Жыл бұрын
I've been trying to instal dlib for so long!! Ugh
@azizpubg1161 Жыл бұрын
small_frame = cv2.resize(frame, (1, 1), fx=0.35, fy=0.35) how to fix this?
@nidhi32011 ай бұрын
I can't find the source code !!!!!!!!!
@PANDURANG99 Жыл бұрын
How to make web application, where to store data
@Nithin_34243 ай бұрын
My webcam sometimes Not responding how can i solve the problem. but the cam working good.the recognition is strucked sometimes
@nestor327373 ай бұрын
same issue
@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 Жыл бұрын
Start by learning machine learning
@asifrehman4214 Жыл бұрын
@@Indently Ok I will start to convert it to the machine learning model...thankx for your support.
@dahiya-vc6xs Жыл бұрын
Where is source code ?
@prajwalbr8223 Жыл бұрын
Getting error in installing dlib
@Name-ke6sf Жыл бұрын
same
@SahdeuAriel3 ай бұрын
can i use vs code rather than pycharm
@Indently3 ай бұрын
You can
@AVTerrorX2 жыл бұрын
I'm getting one problem, an error just occurred, saying 'no module named face_recognition'. How can I solve this problem?
@Indently2 жыл бұрын
kzbin.info/www/bejne/banFg3ufjrOGmtU
@georgejere2306 Жыл бұрын
@@Indently i also need help. My webcam is starting but not showing the names
@donkzilla280211 ай бұрын
where is the source code
@benjamincorneliojr.80998 ай бұрын
the camera opens and working, but after it detects face it stops or lag. HElp
@kungfookeney66287 ай бұрын
same any fix?
@azizpubg1161 Жыл бұрын
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'"
@askelardd8 ай бұрын
need help , i fixed
@LaurynGrosshans Жыл бұрын
I tried to add a face into the folder and got the error IndexError: list index out of range. whats happening?
@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 Жыл бұрын
When i tried to add a face, it says permission denied. How to tackle that issue?
@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 Жыл бұрын
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 Жыл бұрын
@@Austin-vz9rt hey man, can you please help me on this issue😢
@ayencoscolfield33127 ай бұрын
hi good video but i cant seem to get the source code guthub link an you please share that. Thanks so much would appreciate
@SouleymAI10 ай бұрын
I do not see the code in description 😭😭
@anushamarts Жыл бұрын
Getting index out of range error can someone help?
@coordinator303910 ай бұрын
Did not work. I keep getting type errors.
@ItsJustSawyer2 жыл бұрын
Dlib will not install for me
@Indently2 жыл бұрын
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 Жыл бұрын
If you still need help, reply.
@ano0os050 Жыл бұрын
@@fernandez06 Still trying to download dlib but it seems impossible to do :(
@fernandez06 Жыл бұрын
@@ano0os050 ok, did you try deleting and downloading it again?
@aasutoshverma8164 Жыл бұрын
its so annoyed ! it getting eror! not detecting faces . what u skiped in his video nothing is working as excepted
@VHANSEN9 ай бұрын
its just not detecting my face
@cakeas9248 Жыл бұрын
I expected to write 50 lines...
@JTKING397 Жыл бұрын
does this work in vs code
@moneymolanta61519 ай бұрын
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)
@vinnybeastpro8230 Жыл бұрын
its not working
@thaihongkramxa75637 ай бұрын
source code
@freepythoncode2 жыл бұрын
Very very slow 😔 What i can do 🙂
@Indently2 жыл бұрын
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!
@freepythoncode2 жыл бұрын
@@Indently Thank you so much 🙂❤
@VojtaGaming25 Жыл бұрын
mine is also very slow did you fix this?
@kusbrololo4220 Жыл бұрын
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