Face Recognition With Raspberry Pi + OpenCV + Python

  Рет қаралды 170,862

Core Electronics

Core Electronics

Күн бұрын

Subscribe For More!
Article with All Steps - core-electronics.com.au/tutor...
Teach your Pi to spot human faces, train it to know your face and run code so that it will successfully identify you when it sees you. Then use your face to control the GPIO!
Make sure to use the Previous Raspberry Pi 'Buster' OS with this Guide.
Related Information
Flashing 'Buster' OS onto a Raspberry Pi - core-electronics.com.au/tutor...
Face and Movement Tracking Pan-Tilt System For Raspberry Pi - core-electronics.com.au/tutor...
Object and Animal Recognition with a Raspberry Pi - core-electronics.com.au/tutor...
Hand Tracking & Gesture Control With Raspberry Pi - core-electronics.com.au/tutor...
Speed Camera with Raspberry Pi - core-electronics.com.au/tutor...
Control Your Raspberry Pi Remotely Using Your Phone (RaspController Guide) - core-electronics.com.au/tutor...
I will show you exactly how to have your Raspberry Pi credit card sized computer be able to spot human faces, how to train it to know your face and run code so that it will successfully identify you when it sees you. Then I'll take it another step and show you how you can use your face to control a servo attached to the Raspberry Pi. Open Source Software and Raspberry Pi go together hand in hand. Two excellent examples of this are OpenCV which provides a huge free resource to solve real-time computer vision problems and the Python Face Recognition Package which computes bounding boxes around a face in real-time. With it working we can do so many things with this now. Simply to start can now jump into the folders with the Python code and alter some lines of code so that every time a known face is seen it will send out signals via the GPIO pin of the Raspberry Pi. These GPIO pins can be used to control an almost endless amount of sensors and mechanisms. In this video I will get a servo to rotate when the Raspberry Pi system sees my face. If it sees someone else face or nobody's face it will not activate the servo. Huge thanks go to the Open-CV and Facial Recognition Package teams that work on the amazing machine learning software that we have running on the Raspberry Pi. Both are really good Open Source software. Also a huge thank you to Caroline Dunn whose created the amazing software that makes these two systems work so well together. There is just so much potential with this software to take projects to amazing places.
If you have any questions about this content or want to share a project you're working on head over to our maker forum, we are full time makers and here to help - coreelec.io/forum
Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:
Raspberry Pi Official Camera Module V2 (used here): core-electronics.com.au/catal...
Raspberry Pi 4 Model B (4GB) Ultimate Kit Bundle (AVALIABLE!) - core-electronics.com.au/raspb...
Raspberry Pi 4 Model B 8GB: core-electronics.com.au/catal...
Makeblock 9g Micro Servo Pack (used here): core-electronics.com.au/catal...
Raspberry Pi High Quality Camera (Version 3): core-electronics.com.au/catal...
Raspberry Pi 4 Power Supply: core-electronics.com.au/catal...
0:00 Intro
0:10 OpenCV and Face Recognition Package Overview
0:33 Video Overview
0:54 What You Will Need
1:30 Set Up and Training The Model
4:30 Its Working!
4:50 Experimentation with Facial Detection
5:18 Where to Now? (Face Controlled Servo)
6:08 Demonstration
6:38 Acknowledgments
7:02 Outro

Пікірлер: 330
@dgb5820
@dgb5820 2 жыл бұрын
That was one of the best information instructional videos pertaining to The raspberry PI I have ever seen. You nailed it mate. Is there any potential towards object recognition? If so please make a video
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Thank you very much, we do have a guide on object recognition in the works, keep an eye out. 😄
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Got you sorted - kzbin.info/www/bejne/n4C3iI1_abd7d5o
@quintonvehon2638
@quintonvehon2638 2 жыл бұрын
Great tutorial and the article comment section was so informative and helpful when I had issues. Can't wait for more awesome videos from you Tim!
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Sweeet 😊 and new videos all the time!
@wierzba1992
@wierzba1992 Жыл бұрын
Cool stuff, this was my disertation project! Face Recognition with Pan & Tilt tracking using two servo motors! :D Tip: use traditional machine learning like Histogram of Orianted Gradient or Haarcascade instead of Deep Neural Nets because they are soooo much faster! Also a good thing to look at is a PID controller. Cheers!
@Core-Electronics
@Core-Electronics Жыл бұрын
What a brilliant dissertation project 😊 here is how I tackled doing Face Tracking with a Pan-Tilt HAT system - kzbin.info/www/bejne/ipCbamWJgLuBnJY PID Control is definitely a worthy pursuit however as we are pushing the hardware to its full capacity there seems to be one that naturally occurs.
@alexiscruz5854
@alexiscruz5854 2 жыл бұрын
Thank you so much for making these videos. They deserve so many views. You're awesome!
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Very kind mate 🙂 I get excited making these videos, hope that comes through + lots left to explore.
@stevenhillman6376
@stevenhillman6376 7 ай бұрын
Awesome , great tutorial. I now have this running on my Pi4, MacBookAir and iMac.. Easy to follow and all links etc. provided. Thanks again. 10/10
@keshavkumarray5460
@keshavkumarray5460 2 ай бұрын
Hi Steve and Tim, I have installed the OS Pi Buster as you guided but in my PI File I didn't get 'Facial_Recognition' folder. Thanks in advance for suggestions
@amarnathv8689
@amarnathv8689 2 жыл бұрын
Awesome project, Thanks for the steps to install open cv libraries.
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Very happy to of helped 😄
@lakostal
@lakostal 11 ай бұрын
Awesome! I had some troubles along the way with the install but your support on the website is amazing. Thank you Tim!
@danieleporfiri1302
@danieleporfiri1302 Жыл бұрын
hello! can it be done with a photo? i got an external source which saves images in a folder in my rpi overwriting it when it detects a face. i want to run face recognition on that picture. is there a way to use my image instead of the live streaming?
@BlizzOd
@BlizzOd 26 күн бұрын
Thanks mate I it was one of the best info Lot of your vids has helped me Keep it up 👍👍
@fattyandpeaches4275
@fattyandpeaches4275 2 жыл бұрын
You're a beast mate, thanks for the video
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Haha much appreciated, hope it helps you on a rad project 😄
@samcjsanchez4940
@samcjsanchez4940 Жыл бұрын
Wow this is a great and very smooth tutorial!!! Do you have both object and face detection with audio output???
@Core-Electronics
@Core-Electronics Жыл бұрын
Cheers mate 😊 If you like this you should check out Oak-D Lite with Raspberry Pi - kzbin.info/www/bejne/bXPOeZaAqppqeck You can also definitely include Audio Output to the Python Scripts I have provided here.
@jonahnazarian8897
@jonahnazarian8897 Жыл бұрын
Hey, great video. I’m a little new to this and I was wondering how to get these li and facial recognition folders. I have python downloaded on my raspberry pi, but don’t have any of these folders. Thanks.
@johnlordibanez1697
@johnlordibanez1697 Жыл бұрын
hi tim, i just want to ask how to make your motor servo back to 0 degrees if its not detecting any objects thankss
@bhurkeneil4245
@bhurkeneil4245 2 жыл бұрын
You explain very well thanks
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Glad it was helpful!
@paveljurica2966
@paveljurica2966 Жыл бұрын
Thank you man!
@romtham2505
@romtham2505 10 ай бұрын
My code needs to use the values ​​from the pickle file so cd myfolder must be used before it can run. Is there a way to write a script run? Please.
@composeexpose8009
@composeexpose8009 6 ай бұрын
Hi! Would it be possible have the Raspberry Pi adjust the exposure so that the face is always properly exposed? If so, any idea how I can achieve this? Thank you!
@qamilharith
@qamilharith 2 жыл бұрын
Thank you so much !
@animukan3950
@animukan3950 8 ай бұрын
How far is the camera can scan face? If this use as CCTV camera that need to place so much far like around 3-4 meters from people, does it recognize the face as well?
@khadir6221
@khadir6221 Жыл бұрын
Hello, great video man keep it going. I have a raspberry pi 3b+ and whenever i execute the code there is a 10-15 second delay. I tried both cameras like python one and a webcam and same result. When i try running a simple code there is no delay. What can i do?
@dwynemarquita1676
@dwynemarquita1676 Жыл бұрын
Is it the same with using the high quality camera?
@BlissfulBloke
@BlissfulBloke Жыл бұрын
Can anyone elaborate on the compatibility issues for OPEN-CV with the new Raspberry Pi ‘Bullseye’ OS mentioned in the article?
@muhammadsalem9924
@muhammadsalem9924 8 ай бұрын
I have this project : "Design of Driver Awareness system depending on Eye and Face Feature and Discrimination" Can I use ESP32 instead of Raspberry Pi? Please answer
@binauralbeats-relaxingmusi4336
@binauralbeats-relaxingmusi4336 3 ай бұрын
How i can setup it using esp cam and live object recognition and its should give output in speaker
@sokunpanhaleang2455
@sokunpanhaleang2455 2 ай бұрын
Hi, For that camera does it detect human even in the dark, smoke or in fire
@iankantian
@iankantian Жыл бұрын
My robot projects are about to get WAAAAAAAAAAAAY creepier. I love it.
@Core-Electronics
@Core-Electronics Жыл бұрын
Have fun and use your new found computer superpowers for good 😊
@Videogame9559
@Videogame9559 6 ай бұрын
Hi did this images wasn't the folder do you rename the photos folder ?
@RajeshmayBurman
@RajeshmayBurman Ай бұрын
Awesome Project
@TheSj98
@TheSj98 2 жыл бұрын
Hello! Great tutorial! Is there a way where we can improve the frame rate? The program is able to recognize my face but the frame rate is very low. I am not using a raspberry pi camera, just a random USB webcam. Also, I am facing an issue where another person comes into frame, instead of showing "unknown", it displayed my name instead. I tried taking 40 images instead of 10 but the result is still the same. Please let me know if you have any way to solve this. Thank you!
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Can I ask which Raspberry Pi you are using? Using the highest Spec Pi possible is always my first recommendation. Using a TPU accelerator like the Google Coral edge TPU will also provide some signification FPS gains. Also it surprises me that it isn't identifying correctly, potentially providing it with fewer than 10 images will yield better results in your particular use case. Hope this helps!
@112Famine
@112Famine Жыл бұрын
People that live outside of the city need a version of this that can detect wildlife; bears, cougars, & alligators so they know if it is safe to open their door, doubly true if they have small kids or dogs that want to play in the yard & not be eaten.
@Razibulsumon
@Razibulsumon 5 ай бұрын
I am very new and how different it is from bookworm? Also Picamera is no longer available now it is libcamera do you have a tutorial with libcamera. ALso is it possible to avoid pip since we have to create venv . Thanks a lot for your help.
@milomoores
@milomoores 7 ай бұрын
is there any way to improve the fps when it's searching live for faces?
@ronneljayaspiras8918
@ronneljayaspiras8918 5 ай бұрын
hi tim after putting the cd facial_recognition (4.00) my raspi keeps saying ; bash: cd: facial_recognition: No such file or directory
@adrienguidat6805
@adrienguidat6805 2 жыл бұрын
Brilliant, thx!
@Core-Electronics
@Core-Electronics 2 жыл бұрын
You're welcome!
@gapguy9564
@gapguy9564 Жыл бұрын
How can i use regular usbwebcam for this?
@RajeshmayBurman
@RajeshmayBurman Ай бұрын
Can this project can be considered under iot hardware project?
@keyana.8376
@keyana.8376 Жыл бұрын
Am I wrong in assuming that the project can't run standalone, e.g. with a power supply and no connections to a computer once the program has been uploaded? Or will it always need to be "plugged" in? Thanks for the great video!
@Core-Electronics
@Core-Electronics Жыл бұрын
You can run face detection without a display. So if you can remotely/headlessly start the Python Script (using your phone like this guide here is a good way to do that - core-electronics.com.au/guides/raspcontrol-raspberry-pi/) it'll run just like normal. So if you ran that servo script, if you showed it your face it'll work as it should and activate that servo, with or without a display. Hope that helps 😊
@scyxrazor473
@scyxrazor473 Жыл бұрын
@@Core-Electronics Hi, the link you provided is not available :(
@el-mohandes
@el-mohandes Жыл бұрын
wonderful
@Xardas_
@Xardas_ Жыл бұрын
Well done. :)
@Ssyn23755
@Ssyn23755 7 ай бұрын
what are all the software used for this to work?
@JamesCRugby
@JamesCRugby 2 жыл бұрын
Did I need a different program for the pi as the link you have provided is for pan and tilt system of witch I don't intend to use ?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Not quite sure what you mean but the full article (with everything you need for this video) can be found here - core-electronics.com.au/tutorials/face-identify-raspberry-pi.html
@jameshodds8800
@jameshodds8800 2 жыл бұрын
@@Core-Electronics So I'm now setting up my pi with the full article and just added the terminal line (cmake -D CMAKE_BUILD_TYPE=RELEASE \) but it looks like it has crashed I pressed return and I have the following symbol > this is the second time this has happened help
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Hey mate, is totally okay seeing that | > | symbol. Just continue on with the next terminal line | -D CMAKE_INSTALL_PREFIX=/usr/local \ | and so forth. Then once you get to | -D BUILD_EXAMPLES=OFF .. | it will return to normal terminal command lines without the | > |. Hope this help!
@maximprokhman9133
@maximprokhman9133 28 күн бұрын
Hello, I'm trying to follow the tutorial but I can't find the folder ''facial_recognition''. How do I find her?
@achyutreddy2007
@achyutreddy2007 2 жыл бұрын
Hello! What if I were running OpenCV code from the Pycharm IDE. How would pair the raspberry pi camera instead of the webcam that I am using for the code?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Pycharm IDE is just a Python interpreter software just like Thonny IDE, so all the scripts here will work in either. If your using a Pi Camera all the scripts talked about here will work straight away, you will need to alter some values in the script if your using a USB webcam.
@Dart.elevate
@Dart.elevate 2 жыл бұрын
Hi Tim, can we run our face recognition program and live stream on local host at same time? if yes , can you please guide me?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
You can definitely live stream the camera results out of the Raspberry Pi so long as your internet its up to the task. It will slow down the Raspberry Pi slightly however. Come jump onto our forums if you need a hand with any project 😊
@caseystumpf752
@caseystumpf752 6 ай бұрын
when building make -j$(nproc) it freezes at 99% at Built target opencv_perf_superres any solution tried twice froze at same spot
@thewastelandwaffle9334
@thewastelandwaffle9334 2 жыл бұрын
Could I be able to get it to play an audio file instead, and how would I go about implementing that into the script?
@giji6762
@giji6762 2 жыл бұрын
you can just google how to play sound in python, and put that code instead of the 3 lines for the servo
@johnholland5017
@johnholland5017 Жыл бұрын
Great, thanks, is there a pan and tilt motion tracking mode available??
@Core-Electronics
@Core-Electronics Жыл бұрын
Heyya John Holland come check out this video I did on exactly that - kzbin.info/www/bejne/ipCbamWJgLuBnJY It'll get you right into the thick of it 🙂
@xavierrichards5345
@xavierrichards5345 Ай бұрын
hai! Nice video, Can you tell me what Is the accuracy like and how many I can train? As I had a few face recognition project experiences there is very little accuracy and i have tried using various libraries like face recognition using python in my raspberry pi.
@chakrikaanoushapinisetty2197
@chakrikaanoushapinisetty2197 Жыл бұрын
Hey Timmy, Thanks a lot the video is great. We are actually looking how to close the servo motor back after it opens . Can you please help us out.? Thank you!
@Core-Electronics
@Core-Electronics Жыл бұрын
Heyya, everything you need to understand exactly how to do that you can find here 😊 - core-electronics.com.au/guides/control-servo-raspberry-pi/
@sku1196
@sku1196 2 жыл бұрын
Hey! can you please leave a link for the preinstalled opencv image? Would help a lot
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Wish I could. I did make an image for it but there is no good way of distributing the large image file in a manner which is future proof. It will take some time but I have proofread each step to install OpenCV and the dependencies from scratch, so you absolutely won’t run into any errors, it just takes a little time to do so.
@SuperNikhil001
@SuperNikhil001 Жыл бұрын
This a major help for me ... great tutorial .. One question though .. is there a way to unlearn a face .. so the systme does not recognise it any more
@Core-Electronics
@Core-Electronics Жыл бұрын
Absolutely, just delete that folder where you have those photos that it has trained on. That should be enough to stop it knowing someone (without having to go through the installation process again)
@SuperNikhil001
@SuperNikhil001 Жыл бұрын
@@Core-Electronics yeah was messing around and understood that could be done .. 😁🫡 .. thank you so much 😁
@maelstrom6287
@maelstrom6287 Жыл бұрын
hello does this python code work on raspberry pi 3 model b+
@harryhoughton1314
@harryhoughton1314 2 жыл бұрын
Hi I am getting an error when I try to increase the swap size. when I enter sudo nano /etc/dphys-swapfile After pressing enter, the error appears saying [error reading lock file /etc/.dphys-swapfile.swp: nog enough data read] what is causing this?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
I think your swapfile is corrupted. Give yourself a treat and flash yourself a new fresh version of Raspberry Pi 'Buster' OS and tell me if that problem happens again 🙂
@Ibrahim5902
@Ibrahim5902 Жыл бұрын
Hi, when I try to execute python facial_req.py I get the following error [ WARN:0@5.322] global /home/pi/opencv/modules/videoio/src/cap_v4l.cpp (902) open VIDEOIO(V4L2:/dev/video2): can't open camera by index. Is this an issue with the OpenCV installation?
@Core-Electronics
@Core-Electronics Жыл бұрын
Come jump onto the Full written up article and check the comment section. A lot of successful trouble shooting can be found there. This is a Camera Index setting that you just need to make a quick adjustment in the Python code. I talk about it explicitly in the bottom paragraph of the Demonstration section - core-electronics.com.au/guides/face-identify-raspberry-pi/#Demon
@manashpratimsaikia
@manashpratimsaikia 6 ай бұрын
After running in thonny following errors come " ImportError: numpy.core.multiarray failed to import"
@keshavkumarray5460
@keshavkumarray5460 2 ай бұрын
I am getting this error continuously, how to fix that:- Traceback (most recent call last): File "/home/keshav/facial_recognition/headshots_picam.py", line 17, in cv2.imshow("Press Space to take a photo", image) cv2.error: OpenCV(4.4.0) /home/keshav/opencv-4.4.0/modules/highgui/src/window.cpp:651: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage'
@rednas0787
@rednas0787 2 жыл бұрын
Is the redbarry pi fecial recognition triggered by physical photo's? Or is it smart enough to distinguish real humans and photos?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
I reckon you'd be able to trick it with a photograph.
@Bllackmage
@Bllackmage 6 ай бұрын
can i open the face recognition with node red?
@afrojkhan6634
@afrojkhan6634 Жыл бұрын
I had done this using arduino in 2020 . I had use led bulb instead of servo motor
@PrestonZen
@PrestonZen Жыл бұрын
How do I reduce the quality of my camera? It defaults to 4056x3040 which is way too large and it drops my frames like crazy. I have the RPI 4 8GB RAM
@Core-Electronics
@Core-Electronics Жыл бұрын
In the main script you will find this line of code | frame = imutils.resize(frame, width=500) |. Edit that 500 to be a smaller number to increase your FPS 😊
@mahmoudsalah1573
@mahmoudsalah1573 2 жыл бұрын
tnx , love u 🤩🤩🤩
@Core-Electronics
@Core-Electronics 2 жыл бұрын
You're welcome 😊
@hanako6465
@hanako6465 5 күн бұрын
Hey can you iris recognition with raspberry pi?
@scenesticlad3042
@scenesticlad3042 2 жыл бұрын
What if I want the data of detected persons to be stored in the memory, and the second part is that Can I detect objects and save them with the data of a specific person who detected the object in the camera?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
You can definitely alter the code so that it takes a snapshot/video recording every time a face is seen. In regards to object detection I've put together a guide on doing just that, linked in the description. Combining both Object and Face detection as a single system is doable, something I'd love to pursue.
@scenesticlad3042
@scenesticlad3042 2 жыл бұрын
@@Core-Electronics ok man thanks would try
@mahdiabukhaled3555
@mahdiabukhaled3555 2 жыл бұрын
Hi Tim when I write this part ( make -j$(nproc) ) this error jump to me (error: unrecognized command-line option ‘-param=ipcp-unit-growth=100000’; did you mean ‘-param=ipa-cp-unit-growth=’?) what should I do Need some help, please
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Double check everything you have written before is correct. Re-type | make -j$(nproc) | and if you keep running into issues come jump into the forum/comments in Written Article. A lot of successful troubleshooting there and I'll be better able to help you until we get it working 🙂
@FSANJAY-gv2eh
@FSANJAY-gv2eh Жыл бұрын
hi i have problem with the train part there is a error shown that no module named imutils can i know how to solve it
@Core-Electronics
@Core-Electronics Жыл бұрын
Come check the comment section at the bottom of the full written up article. There will be a solution for you there 😊
@saso6434
@saso6434 2 жыл бұрын
Not working I installed all libraries but i still getting errors. Some errors I fixed but i can´t fix: "AttributeError: 'NoneType' object has no attribute 'shape' " maybe you can make full tutorial with installing all libraries etc.
@Core-Electronics
@Core-Electronics 2 жыл бұрын
The full article does go through the whole process of installing Open-CV but it would definitely be worthwhile making a video guide on the process, particularly once Open-CV and the new 'Bullseye' Raspberry Pi OS release has full compatibility. In regards to fixing your issue, it is important to run the old 'Buster' Raspberry Pi OS as this currently is the only compatable OS with Open-CV. Here is a guide on how to do that - core-electronics.com.au/tutorials/flash-buster-os-pi.html. If you still run into issues open up a forum topic and I'll help you through the whole process there 😊
@reyamed720
@reyamed720 2 жыл бұрын
hello mate, I got the same error, did you manage to fix it ?
@ShavoTako
@ShavoTako Жыл бұрын
very good project bro, do you think I can use a usb webcam, as a camera instead of the raspberry one???
@Core-Electronics
@Core-Electronics Жыл бұрын
Absolutely mate! Just check the bottom of the | Demonstration | chapter to see how to modify one line of the script to do so 😊
@RollingInBoost
@RollingInBoost Жыл бұрын
can this also work with an IR camera for night vision?
@Core-Electronics
@Core-Electronics Жыл бұрын
I haven't run this exact machine learnt system with an IR camera but it should work fine 😊
@berishabida3225
@berishabida3225 2 жыл бұрын
I've downloaded opencv but I still get an error of "no module named cv2", and I'm not sure how to fix it?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Come jump onto the comment section of the written article. A lot of successful troubleshooting has happen there and if the solution to your problem isn't there I'll help you out until we get your system running 😊
@hopi9927
@hopi9927 2 жыл бұрын
Dear,I can not use opencv with thony ,can you explain me how to install opencv matplot to run on thony ?thank
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Jump to the full write up article and you'll find both troubleshooting in the comments and a full step-by-step process to install the face recognition software.
@Jiggafreejay
@Jiggafreejay Жыл бұрын
Timmy, are you still assisting individuals with questions or if they run into a problem with your video?
@Core-Electronics
@Core-Electronics Жыл бұрын
My man absolutely I am 😊! Usually the best place for more complicated questions would be at the bottom of the full written up article in the comment section (because you can add photos/screen caps) and I'm guaranteed not to miss them - core-electronics.com.au/guides/face-identify-raspberry-pi/
@Dart.elevate
@Dart.elevate 2 жыл бұрын
Please tell me , which algorithm is used for facial recognition. name? BTW love your videos.🔥❤️
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Viola Jones Algorithm is what your looking for. If it was just Haar-Cascade Detection you wouldn't be able to identify different faces as easily.
@lalithnarayanan1979
@lalithnarayanan1979 Жыл бұрын
how to stream the content to other local device video on that pls
@user-km1lf3iq6m
@user-km1lf3iq6m 2 жыл бұрын
Hi Time, when I use -D BUILD_EXAMPLES=OFF .. it gives an error and said theres no cmake command found, or it gives an error, what do I do?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Double check for me that you have cmake installed (It happened in this line | sudo apt install cmake build-essential pkg-config git |)
@user-km1lf3iq6m
@user-km1lf3iq6m 2 жыл бұрын
@@Core-Electronics that worked now after a few times, thank you but now I got this problem: pi@raspberrypi:~/build $ cmake -D CMAKE_BUILD_TYPE=RELEASE \ > CMake Warning: No source or binary directory provided. Both will be assumed to be the same as the current working directory, but note that this warning will become a fatal error in future CMake releases. CMake Error: The source directory "/home/pi/build" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI.
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Definitely jump onto the article page and hit me up with a comment there, I'll be able to get to your questions quicker. That file should automatically generate after you type and enter the line | make -j$(nproc) |. Double check for me you haven't missed any of the earlier steps.
@zainmuhammad4471
@zainmuhammad4471 2 жыл бұрын
Hie Timmy, im having issues with installing open cv. I have followed the complete guide on your web sites but opencv won't install. And every lines worked i didn't got any error though the installing process. When im importing the cv2 in the python code im having no modules name cv2. Please help is for an school project. Thanks.
@Core-Electronics
@Core-Electronics 2 жыл бұрын
How very weird, Come check out the comment section for the full write up, there is a lot of successful troubleshooting that you can learn from there. If you keep running into issues post some screenshots of the error and I'll help you get your system up and running proper 😊
@zainmuhammad4471
@zainmuhammad4471 2 жыл бұрын
@@Core-Electronics my problem is half solved, when i have installed cv2 but it's only installing with the python 2.7 and not the latest version of python so i can't use thony ide also because he's not finding any module named cv2. Also in the terminal if i will run python3 and import cv2 it will tell me also no module name cv2. And i haved checked im running the old buster version. Ps: thanks for your respond :)
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Heyya mate, I got flooded with KZbin comments and this one slipped through the radar. I'll definitely best be able you on our forum, come write up a message there with some photos and we'll have your system up and running in no time.
@stoopid-studios
@stoopid-studios 10 ай бұрын
@@zainmuhammad4471 thats the version that im using
@robertbrennan5789
@robertbrennan5789 Жыл бұрын
Hi, where can I get the code for the servo control? Cannot find it on the link. Thanks again
@Core-Electronics
@Core-Electronics Жыл бұрын
You'll find the exact 5 lines I added to | facial_req.py | to make it possible in the script explained in the where to now section of the written up guide - core-electronics.com.au/guides/face-identify-raspberry-pi/#Where That'll sort you right out 😊
@robertbrennan5789
@robertbrennan5789 Жыл бұрын
@@Core-Electronics thank you so much! That just made my day and saved me from a lot of stress! 😃
@ibrahimshaikh9179
@ibrahimshaikh9179 2 жыл бұрын
Can you please share the gpio connection to servo motor wire connection to which gpio number?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Come check out this guide which will have everything you need to know 🙂 - core-electronics.com.au/tutorials/control-servo-raspberry-pi.html
@moabadejumat3609
@moabadejumat3609 Жыл бұрын
Hello! I was wondering if i can use a raspberry pi 2 model b for the project
@Core-Electronics
@Core-Electronics Жыл бұрын
It will go very very slow if you do.
@moabadejumat3609
@moabadejumat3609 Жыл бұрын
@@Core-Electronics when training the model or recognizing faces?
@Core-Electronics
@Core-Electronics Жыл бұрын
Recognising faces. Training will still be really fast.
@winterender8663
@winterender8663 Жыл бұрын
Timmy my friend I require some help. I am planning on incorporating this face recognition system for my school project. However, every week we are subjected to a different raspberry pi. Therefore, whatever folders and dependencies we install the previous week would no longer be there. Thus I would have to spend a hour or so getting the required items set up. Thus, is there a better way I can approach this such that the set up time is not that long and I can immediately get it working. Let me know what I have to take note of. Thank you
@winterender8663
@winterender8663 Жыл бұрын
Also is there a better way in which I can contact u? Discord or something. Thanks
@Core-Electronics
@Core-Electronics Жыл бұрын
The easiest way I can think is to take in your own SD card 😊 that is the whole brain of the operation and once installed you can plug it into any similar version of Raspberry Pi and be smooth sailing. The other option is to create a Custom Image of your Raspberry Pi instance. This Image you can then use to flash other SD cards, speeding up the process as you will just need to flash the SD card with your already Face Installed image. Heres the process for that - kzbin.info/www/bejne/qnXQoHyQiKqfiJY And the best place to contact me would be at our forums here, pop by if you have any questions on anything electronic! - forum.core-electronics.com.au/
@winterender8663
@winterender8663 Жыл бұрын
@@Core-Electronics ModuleNotFoundError:No module named 'cv2'
@winterender8663
@winterender8663 Жыл бұрын
Am I meant to do pip install opencv-python
@winterender8663
@winterender8663 Жыл бұрын
Also do I really need a raspberry pi camera to take pictures for training model. Or could I just prepare the pics using my laptop camera and just train them on the raspberry pi. Or if possible can I take pictures and train the model on my PC?
@sripalimanimekala8730
@sripalimanimekala8730 9 ай бұрын
can i do this with rasphberry pi 3b+ without any issues? can anyone reply to this ASAP.
@hamvok
@hamvok Ай бұрын
the facial_recognition folder is not forming after multiple attempts
@johnjayveec.alindayo9278
@johnjayveec.alindayo9278 2 жыл бұрын
My raspberry pi configuration not showing the camera? But i already install daw camera module? What i will do in this case?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Come jump on the forums/written article page if you need some troubleshooting help. What happens when you type and enter the below into your terminal? raspistill -t 0
@johnjayveec.alindayo9278
@johnjayveec.alindayo9278 2 жыл бұрын
@@Core-Electronics do you have any communication app?
@johnjayveec.alindayo9278
@johnjayveec.alindayo9278 2 жыл бұрын
@@Core-Electronics i try to input that code its working, but after i installed manu library and after i reboot, the camera not found
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Sounds like some weird camera issues. Come jump on our forums and write up a post 🙂 we will be able to help you best there. forum.core-electronics.com.au/
@fatinnuradibahbintimuslan1287
@fatinnuradibahbintimuslan1287 2 жыл бұрын
Do you have coding for confidence value that can put in facial_req.py ?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Have a look at this fellows work in regards to confidence values - pyimagesearch.com/2018/09/24/opencv-face-recognition/
@jovenfabricante9925
@jovenfabricante9925 2 жыл бұрын
if i use a usb webcam does the camera still work? sorry newbie.
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Absolutely it will work - some things will need to be altered in the Scripts and a different script needs to be used to take the initial images that it learns from but everything you need is provided in the written up guide 🙂
@TanimImam
@TanimImam Жыл бұрын
TNice tutorials
@halimaaqraa4545
@halimaaqraa4545 2 жыл бұрын
Hi there, we downloaded open cv in diff path, we are trying to run your code but face this prob -> _model.py Traceback (most recent call last): File "/home/pi/raspberry-pi-opencv/facial_recognition/train_model.py", line 5, in import face_recognition ModuleNotFoundError: No module named 'face_recognition' Anyone help!
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Would definitely recommend going through the process outlined in the Written article. I ran into all kinds of problems trying to download Open-CV and getting it to run using different methods/paths.
@alvinchin8007
@alvinchin8007 Жыл бұрын
Hi. Is it possible to create a GUI that can link this python script? If yes, what language can I use?
@Core-Electronics
@Core-Electronics Жыл бұрын
Absolutely. I talked a little bit about GUI in my Python Workshop, I will link to it here - core-electronics.com.au/guides/python/Tkinter-Python/ There are also many different ways to create GUI, Java is a very common language to do so.
@danielmittelman4941
@danielmittelman4941 Жыл бұрын
I can't find the setup link you mentioned we need to download?
@Core-Electronics
@Core-Electronics Жыл бұрын
Here are the set up terminal commands - core-electronics.com.au/guides/face-identify-raspberry-pi/#Long - Follow through exactly and you'll be good to go 😊
@jonnamaelastimoso562
@jonnamaelastimoso562 Жыл бұрын
What algorithm did you use for face recognition?
@Core-Electronics
@Core-Electronics Жыл бұрын
A number of parts all come together to make this possible. I link some of the most important packages here - pypi.org/project/face-recognition/ opencv.org/ pypi.org/project/imutils/
@alexmanole1038
@alexmanole1038 Жыл бұрын
How can i add a door lock sistem with a solenoid using facial recognition ?
@Core-Electronics
@Core-Electronics Жыл бұрын
You can use a majority of this script and customise it with knowledge from this guide - core-electronics.com.au/guides/solenoid-control-with-raspberry-pi-relay/ I also created a similar system using Biometric control in this guide here - core-electronics.com.au/guides/raspberry-pi/fingerprint-scanner-raspberry-pi/
@chuchumb3r918
@chuchumb3r918 Жыл бұрын
Can I use a webcam instead of the camera module ?
@Core-Electronics
@Core-Electronics Жыл бұрын
Absolutely you can use a USB powered web camera. Check the bottom of the demonstration section in the Full Written Up article to see how - core-electronics.com.au/guides/face-identify-raspberry-pi/#Demon
@IoTivity.
@IoTivity. Жыл бұрын
I pressed the Q key but the cam window won’t close ? Please help
@jyvben1520
@jyvben1520 2 жыл бұрын
typo on website : Facial Recogonition, why the Q in facial_req.py ?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Cheers for pointing that out mate 😊 and that's just how the Python script has been named in reference to this script requiring faces that it has trained with to identify people.
@vovantoan5786
@vovantoan5786 2 жыл бұрын
Hi guy. Fps in my project is less than 1. Can you instruct me to increase fps to recog faster? Thank you very much
@Core-Electronics
@Core-Electronics 2 жыл бұрын
All depends on the hardware that you are using. If you want some real fast Facial Recognition that can get fed into a Raspberry Pi check out this product here - core-electronics.com.au/luxonis-oak-d-depthai-hardware.html
@alfold2000
@alfold2000 Жыл бұрын
Hey, can this be done with a wsb webcam?
@Core-Electronics
@Core-Electronics Жыл бұрын
USB Web cameras definitely work. Come check the full written up article to see how to 😊
@CrackedPi
@CrackedPi 3 ай бұрын
is it possible to use a raspberry 3 b or is it too slow?
@Core-Electronics
@Core-Electronics 2 ай бұрын
There was quite a big performance leap from the 3 to the 4, you might be able to do it, but it will also probably be a very slow experience unfortunately...
@CrackedPi
@CrackedPi 2 ай бұрын
@@Core-Electronics I will try it
@gapguy9564
@gapguy9564 Жыл бұрын
I want to increase fps. Its not usable at present. Using raspi 3b.
@Core-Electronics
@Core-Electronics Жыл бұрын
If you interested on running Face Recognition on the edge (with your current hardware) I highly recommend checking out the OAK-D Lite - core-electronics.com.au/guides/oak-d-lite-raspberry-pi/ Your FPS will be through the roof!
@saiSai-ex7eh
@saiSai-ex7eh 2 жыл бұрын
could you mention,where are gpio pin numbers in code?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
In answer to both questions you can find the GPIO control that I added in | TimServo.py | at the top of the code (around line 12 and lower down in the looping section (around line 96). Happy coding 😊
@glockcallme626
@glockcallme626 2 жыл бұрын
what is the raspberry pi you are using and what model is it ?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
It is a Raspberry Pi 4 Model B 4GB Ram
@sheelpatel5914
@sheelpatel5914 Жыл бұрын
Hi can you please help me how to control dc motors from the image classsification results generated from raspberry pi image classification results
@Core-Electronics
@Core-Electronics Жыл бұрын
Hit up this guide here mate 😊 You'll be controlling DC motors in no time - kzbin.info/www/bejne/m5KZpYampcyNors - Then you'll be able to take that knowledge and merge that into the Face Recognition script.
@sheelpatel5914
@sheelpatel5914 Жыл бұрын
@@Core-Electronics Thanks a lot for the response 🙏👍
@sheelpatel5914
@sheelpatel5914 Жыл бұрын
@@Core-Electronics And can I swap the script from face recognition to image classification ? It would work as expected or the coding needs to be done again ?
@Core-Electronics
@Core-Electronics Жыл бұрын
Come check this guide here on doing exactly that 😊 core-electronics.com.au/guides/object-identify-raspberry-pi/
Measure Speed With Raspberry Pi + OpenCV + Python
10:36
Core Electronics
Рет қаралды 38 М.
I Need Your Help..
00:33
Stokes Twins
Рет қаралды 131 МЛН
格斗裁判暴力执法!#fighting #shorts
00:15
武林之巅
Рет қаралды 83 МЛН
Face Recognition With Python 3.10 Tutorial (Webcam)
18:59
Indently
Рет қаралды 101 М.
Face recognition in real-time | with Opencv and Python
28:19
Pysource
Рет қаралды 246 М.
Live Face Recognition in Python
16:16
NeuralNine
Рет қаралды 136 М.
Raspberry Pi Object Detection Tutorial
9:20
Sam Westby Tech
Рет қаралды 69 М.
Facial Recognition attendance system using python
19:44
I know python
Рет қаралды 580 М.
Raspberry Pi 5: EVERYTHING you need to know
20:32
Jeff Geerling
Рет қаралды 1,1 МЛН
FACE RECOGNITION  + ATTENDANCE PROJECT | OpenCV Python | Computer Vision
52:24
Murtaza's Workshop - Robotics and AI
Рет қаралды 1,5 МЛН
13 Stunning Raspberry Pi Projects for 2024!!!
10:23
ToP Projects Compilation
Рет қаралды 179 М.