
Gmail = GMail( "your-gmail-app-password") The receiver however can be any account email you want to notify. You need to use your gmail account and generate app password. To use email notification to send alert if unknown face is trying to unlock the door.To start entering password using keypad instead using face, you need to press " * " to prompt keypad passcode. Just replace " passcode = " to your secret combination. You can replace the password to your liking. Obama_face_encoding = face_recognition.face_encodings(obama_image) Obama_image = face_recognition.load_image_file( "faces/obama.jpg") You can add as many faces you like but noted that it will take longer to load when started. Also replace the name "obama" to the name of that face name. In faceRecog.py code, replace the "faces/obama.jpg" to your image path. jpg file of the face, rename the image file for easy access. Use snap.py in faces folder from repository snap photo of your face or people who can unlock the door.Change the fields listed below for your own usage: Okay now, it's coding time!Ĭlone this repository into your pi. To power up Raspberry Pi, just use micro USB type-c with supply 5V (Do not supply more than 5V). Don't forget to connect webcam to pi USB port.

You will need HDMI cable to connect the monitor screen. Image generated using Fritzing software įor servo and keypad, the connection is as above. Follow this steps written by Adrian Rosebrock to shorten the dlib installation time a bit. I lost a lot of time just waiting instead of writing code.

Note: Some of the dependencies required a lot of time to install especially dlib.


So last week, i got a last minute request from a student to create a working mock-up for face detection door lock. I am not a pro developer so bare with me! As long it is working, i declare success. As usual, my post usually for beginners easy to understand and for me to learn as well.
