Full Tutorial posted - https://www.tomshardware.com/how-to/raspberry-pi-facial-recognition
Materials: Raspberry Pi 4 and Webcam
Full Tutorial posted - https://www.tomshardware.com/how-to/raspberry-pi-facial-recognition
License: MIT License
Full Tutorial posted - https://www.tomshardware.com/how-to/raspberry-pi-facial-recognition
Materials: Raspberry Pi 4 and Webcam
Full Tutorial posted - https://www.tomshardware.com/how-to/raspberry-pi-facial-recognition
Thank you so much for the helpful tutorial. I am using some of your code and setup for my next side project.
A couple of minor suggestions:
You could provide a script or snippets for the commands to execute for setup; copying them one at a time from the table in the Tom's article was painful. See, for example, https://github.com/littlebee/shelly-bot/blob/d8b61ffb09d622904c17ef80693a8187412f1657/sbin/setup.sh
Needs one little change to work with Python 2 or 3. Where you load the pickle file in facial_req.py, you need an extra param, but only if it's Python 3. Like this:
if sys.version_info >= (3, 0):
encodingData = pickle.loads(
open(encodingsP, "rb").read(), encoding='latin1')
else:
encodingData = pickle.loads(open(encodingsP, "rb").read())
As an aside, naming anything just "data" is generally not considered a best practice.
Would i be possible to use this to recognize specific cat faces with a few tweaks? If you could help by poiting me in the right direction I would be very appreciative.
I found the error, everything was fine but when the camera find my face the camera crash and show this massage
Traceback (most recent call last):
File "/home/pi/face recognition/face_reco.py", line 77, in
counts[name] = counts.get(name, 0) +1
TypeError: unhashable type: 'list'
can you help me? thanks btw for the tutorial
Hello,
Everything works great until I run facial_req_email.py. If it sees my face, it will send an email saying I am at the door. But if it sees an unknown, it does not send any emails. Is there something i am missing.
Thanks for the help.
Hi Caroline,
You did a fantastic job. Congratulations,
I followed your tutorial and noticed some small problems :
pip install imutils instead impiputils
Your send_test_email.py does not contain a recipient email address
Your facial_req_email.py sends an alert even for unknowns peolpe. The reason is the case sensitive line 79 : name = "Unknown". with a lowercase U that works.
Below is some nice features that you can add :
The support of an IP camera instead a webcam or PI cam. I did it with an Axis camera and by modifying the video stream like this :
vs = VideoStream(src="rtsp://user:password@IP_Address:554/axis-media/media.amp").start()
I can't find a way to add a time delay before sending a second alerte for the same identified people.
Many thanks
I noticed very high cpu usage on running facial_req, I think it is related to the converting the frame to greyscale and rgb for opencv to detect the face. I dont think this step is required since face_recognition module supports detection on its own
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.