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.
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
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. 😞
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!
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.
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
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.
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!
@@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. :)
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.
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
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 😢
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?
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 RUclips, 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
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!
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!
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
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
You have brilliantly explained so much, so well, in 12 minutes.
Folks have no idea how long this takes to do well!
Thank you very much for the kind words, hope you enjoyed!
Fantastic tutorial! This video was very easy to follow!
This was legit an awesome tutorial
you got yourself a subscriber
awesome video man! By any chance have you tested something like this using the Hailo npu hat for raspberry??
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.
Please make a video on pose detection with the same setup
Sold out ✌️
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
Hi Jaryd, great video. If I upgrade to a Pi AI Camera, does this still work?
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. 😞
Can you make tutorial using Face Recognition as attendance?
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!
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.
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
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.
Okay so...calculated fps x number of repeated frames with face_encoding...okay, I think I've got that.
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!
@@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. :)
Is it possible if I use raspberry pi 4 model b on this project?
thx
Hello i got 2 questions 1. Where to download the face recognition file and 2. Can we use our laptops webcam ? Pls answer asap ❤❤
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.
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
Najs
I tried the model, and when I turn it on, it works, but when it reveals my face, the image freezes. Why?
Can I use it with Raspberry AI kit?
Will this work with the AI camera?
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 😢
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?
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 RUclips, 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
Hi, can I use a external usb webcam ?
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!
is it possible if using webcam?
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!
@Core-Electronics oooh i get it, thank you so much for your explainationn
hello. Can I get the code ? thank you
Links in the description 👍
hi after running the face recgonition code in thonny it is showing "list index out of range " error please help
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
I think I have just encountered the same issue! My camera wasn't plugged in correctly and I received (possibly) the same error message.
Did you solve this , I have been facing the same error
@@Core-Electronics i have been receiving the same error. Is there another problem ir is it mainly my camera's connection
Where is the code
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