Facial Recognition for Raspberry Pi with OpenCV and Python (Updated Tutorial)

  Рет қаралды 6,335

Core Electronics

Core Electronics

Күн бұрын

Пікірлер: 52
@trythelatest
@trythelatest 27 күн бұрын
You have brilliantly explained so much, so well, in 12 minutes. Folks have no idea how long this takes to do well!
@Core-Electronics
@Core-Electronics 26 күн бұрын
Thank you very much for the kind words, hope you enjoyed!
@fluffyninjamenace4661
@fluffyninjamenace4661 Ай бұрын
Fantastic tutorial! This video was very easy to follow!
@bryanlee7295
@bryanlee7295 Ай бұрын
you got yourself a subscriber
@sorenfirestar2657
@sorenfirestar2657 Ай бұрын
This was legit an awesome tutorial
@gearscodeandfire
@gearscodeandfire 6 күн бұрын
Dude, you rule, great video Also, Luke is pleasantly menacing; he is a good foil and i look forward to watching more videos!
@201crunt6
@201crunt6 Ай бұрын
Sold out ✌️
@nirbinyamin5805
@nirbinyamin5805 16 күн бұрын
Hey man great video! do you know how to make the camera follow the pupil? i want to build an eye -tracker using the raspi 5 and raspi moudle 3 thank you so much
@spartandani3795
@spartandani3795 27 күн бұрын
awesome video man! By any chance have you tested something like this using the Hailo npu hat for raspberry??
@Core-Electronics
@Core-Electronics 26 күн бұрын
We have found that its not as flexible as this in terms of running it in a Python script. And while it does a lot of other computer vision tasks really well, you might be out of luck on face recognition. Right now its not very possible to just type in a line and off-load the processing to it, you need to find a model and then go through the conversion process to get it in the model format it accepts. So if you could find a compatible face recognition model and convert it, that might be possible. But as of now it might not be possible.
@leoandcarb
@leoandcarb 7 күн бұрын
Is it possible if I use raspberry pi 4 model b on this project?
@tarunjeetsingh1111
@tarunjeetsingh1111 Ай бұрын
Please make a video on pose detection with the same setup
@anseltom8471
@anseltom8471 Ай бұрын
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them. guys can you help to solve the error i am facing to install face recognition librarie in my raspberry pi 5
@madwilliamflint
@madwilliamflint Ай бұрын
JUST got this built and working. Couple questions: - Is there a relatively simple way for it to capture a pic for unrecognized faces (at a limit of 1 a minute or something sane?) - I'd really like to set up a "once X has been in frame for a couple seconds, shoot a command off" function. (I want it to play a greeting file for people who's pictures I've trained it on, for instance.) It's 12:30 am and I'm about to start spelunking in to docs, but I'm getting a little loopy so I figured I'd ask here just in case.
@madwilliamflint
@madwilliamflint Ай бұрын
Okay so...calculated fps x number of repeated frames with face_encoding...okay, I think I've got that.
@Core-Electronics
@Core-Electronics Ай бұрын
If you still need a hand, large language models like ChatGPT and Claude are very good at writing Python code. If you past in the entire script, as well as any questions or things you want it to do, they should be able to write it and explain it for your. They are free to use nowadays as well which is amazing!
@madwilliamflint
@madwilliamflint Ай бұрын
@@Core-Electronics Oh I'm good, thanks. I was a little loopy because I was working on this at about 2:30 in the morning. A good night's sleep knocked the dust off my head. :)
@robnowobilski4201
@robnowobilski4201 6 сағат бұрын
I'm stuck, when trying to run the model_training.py, line 3 in the module, no module name face recognition is found.. (error) .. right at minute 6:52. when i get the error message an it runs not super simple (upside down smile)
@Core-Electronics
@Core-Electronics 5 сағат бұрын
Lets try and turn the upside down smile, upside down... again. That error means that Thonny can't find the face recognition library. The likely culprit is that there was an issue with setting up Thonny to use the Virtual environment we set up. Try and run the process shown at 4:12 again. If that still doesn't work then there likely was an issue installing the library. Give the installation from the beginnning of the video a go again, might fix it. If all of that fails, feel free to post your issue on our community forum topic for this video, we have a lot of people over there that can help out! forum.core-electronics.com.au/t/face-recognition-with-raspberry-pi-and-opencv/21033/2
@aufu
@aufu 17 күн бұрын
Hey thank you for making these videos, just subscribed. I need about 5 of these kits and I'm hesitant to order this for real facial recognition. If I'm right, this doesn't distinct if the scanned face is real or the user putting a a photo in front of the camera. For this case, do you know any devkit like this but with some sort of 3D scanner that allows real facial recognition? Thanks!
@Core-Electronics
@Core-Electronics 17 күн бұрын
I haven't tried it but I'm fairly certain this will be tricked by a printed photo of someone. When you get into 3d scanning it starts to get quite involved as well. There are some projects like this: pypi.org/project/pifacecam/ That use a 2 camera setup to fight against printed images, but we don't have a guide for that unfortunately.
@AlexBingham-v7j
@AlexBingham-v7j 14 күн бұрын
Hi Jaryd, great video. If I upgrade to a Pi AI Camera, does this still work?
@Core-Electronics
@Core-Electronics 14 күн бұрын
The AI Camera has its own workflows and needs its own custom model format so unfortunately its not as simple as plugging it in and running this off it. 😞
@johnhamirkarim3696
@johnhamirkarim3696 16 сағат бұрын
​@@Core-Electronics Hello, will it be possible to run models like facenet on the new AI camera?
@amandapanda3750
@amandapanda3750 25 күн бұрын
I've been trying to attempt this tutorial. I'm using a 8 GB RAM raspberry pi on a 250GB SD card and the interface keeps on crashing on me. And I'm having storage issues due to the size of Tensor Flow and OpenCV. Any suggestions on how to mitigate this issue?
@Core-Electronics
@Core-Electronics 24 күн бұрын
That is very odd, OpenCV and Tensor Flow barely push into the Gigabyte range and I had no issues with this on a 32GB SD card. Is your SD card having issues? We don't do much support over KZbin, but we have a forum topic for this video that you can post to, we have lots of makers who can help out! Just give us a bit more info about which interface keeps crashing, and maybe some error messaged about your storage issues. forum.core-electronics.com.au/t/face-recognition-with-raspberry-pi-and-opencv/21033
@AtinderKharoud-em5ol
@AtinderKharoud-em5ol 12 күн бұрын
Hello i got 2 questions 1. Where to download the face recognition file and 2. Can we use our laptops webcam ? Pls answer asap ❤❤
@Core-Electronics
@Core-Electronics 12 күн бұрын
Hey, the file is in the written guide (at the end of the very first paragraph): core-electronics.com.au/guides/raspberry-pi/face-recognition-with-raspberry-pi-and-opencv/ and this will work with a laptop webcam, but the colours might be mixed up depending on what webcam you are using, its possible to correct it in the code though it will all depend on what webcam you use.
@AtinderKharoud-em5ol
@AtinderKharoud-em5ol 7 күн бұрын
K but my dumbass can't figure how to use the webcam pls tell me how to solve it , it says in thonny when I run the image capture script it says no module found cv2
@Core-Electronics
@Core-Electronics 5 күн бұрын
That issue is less camera related and more the Pi not being able to dind the OpenCV library. Either there was an issue with the installation, or Thonny isn't set up to use the virtual environment we installed the packages into. We have a guide on using virtual environments here: core-electronics.com.au/guides/raspberry-pi/raspberry-pi-virtual-environments/ And if you still have issues, feel free to chuck a post on our community forum topic for this guide. We have lots of makers over there that can help! forum.core-electronics.com.au/t/face-recognition-with-raspberry-pi-and-opencv/21033
@AtinderKharoud-em5ol
@AtinderKharoud-em5ol 2 күн бұрын
Hey, thanks my open cv is working but I keep running in a problem there is a error capture_photots(PERSON_NAME) AND , picam2 = picamera2() And camera_num = self.global_camera_info()[camera_num][num] And last index error : inder out of range Pls help me solve out these and tell me where to replace anything like where to replace word name and put my name , and pls tell me how to use laptops webcam with raspberry pi pls give me the code
@lucutes2936
@lucutes2936 Ай бұрын
thx
@kirilllee8800
@kirilllee8800 26 күн бұрын
Can I use it with Raspberry AI kit?
@haytamdz1157
@haytamdz1157 9 күн бұрын
I tried the model, and when I turn it on, it works, but when it reveals my face, the image freezes. Why?
@piotrek6948
@piotrek6948 Ай бұрын
Hi, can I use a external usb webcam ?
@Core-Electronics
@Core-Electronics Ай бұрын
This code is untested on a webcam, but it should be possible. The colours may be off though as depending on your webcam, it may use a different colour space, so it may need a bit of tweaking to get the colours right!
@kirilllee8800
@kirilllee8800 18 күн бұрын
Can you make tutorial using Face Recognition as attendance?
@ambadaspatil2508
@ambadaspatil2508 Ай бұрын
hi after running the face recgonition code in thonny it is showing "list index out of range " error please help
@Core-Electronics
@Core-Electronics Ай бұрын
Hmmm, I haven't come across that issue. If you are still having problems, feel free to post it on our forum topic for this post. Just give us your code and setup, as well as the error message. We do most of our technical support over there! forum.core-electronics.com.au/t/face-recognition-with-raspberry-pi-and-opencv/21033
@Core-Electronics
@Core-Electronics Ай бұрын
I think I have just encountered the same issue! My camera wasn't plugged in correctly and I received (possibly) the same error message.
@adarshshaji4329
@adarshshaji4329 Ай бұрын
Did you solve this , I have been facing the same error
@leoandcarb
@leoandcarb 7 күн бұрын
​@@Core-Electronics i have been receiving the same error. Is there another problem ir is it mainly my camera's connection
@vernievlog5495
@vernievlog5495 21 күн бұрын
Will this work with the AI camera?
@Core-Electronics
@Core-Electronics 19 күн бұрын
You can use the camera part of the AI camera as it can function like a regular Pi camera module, but you won't be able to use the onboard AI chip to speed this up. There is a different workflow and system for using the AI camera's processing power 😢
@nsf8443
@nsf8443 Ай бұрын
is it possible if using webcam?
@Core-Electronics
@Core-Electronics Ай бұрын
This code is untested on a webcam, but it should be possible. The colours may be off though as depending on your webcam, it may use a different colour space, so it may need a bit of tweaking to get the colours right!
@nsf8443
@nsf8443 13 күн бұрын
@Core-Electronics oooh i get it, thank you so much for your explainationn
@PPTMatkul
@PPTMatkul Ай бұрын
hello. Can I get the code ? thank you
@Core-Electronics
@Core-Electronics Ай бұрын
Links in the description 👍
@HnedWebTV
@HnedWebTV Ай бұрын
Najs
@Jon509h
@Jon509h Ай бұрын
Where is the code
@Core-Electronics
@Core-Electronics Ай бұрын
You can find it on our written guide page core-electronics.com.au/guides/raspberry-pi/face-recognition-with-raspberry-pi-and-opencv/ But here is a direct link as well! core-electronics.com.au/attachments/uploads/facial-recognition-updated.zip
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 13 МЛН
Deadpool family by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 3,7 МЛН
You’ve Never Seen WiFi Like This
20:43
Data Slayer
Рет қаралды 1 МЛН
how is this hacking tool legal?
11:42
Low Level
Рет қаралды 413 М.
I Fixed Spotify's Biggest Mistake!
9:00
Loose Goose
Рет қаралды 6 М.
Open Source Motion Capture for Autonomous Drones
10:34
Joshua Bird
Рет қаралды 645 М.
NEW Raspberry Pi AI Camera - Review, Setup & Test in 5 min
4:45
DIY Engineers
Рет қаралды 8 М.
Creating an Exotic Material With A Static Secret (Electret)
16:57
Plasma Channel
Рет қаралды 443 М.
The Magic of RISC-V Vector Processing
16:56
LaurieWired
Рет қаралды 333 М.
Face recognition with Python and OpenCV in 14 lines
11:35
The Morpheus Tutorials
Рет қаралды 40 М.