In this tutorial you are going to learn how to build a facial recognition based door lock using a raspberry pi.
Face recognition door lock system using arduino.
Prepare your raspberry pi with latest raspbian operating system and get ready to do some programming.
An alexa enabled door lock with face recognition and remote control.
Finally esp32 cam face recognition lock is ready.
Camera installed at the main door is used to click 5 consecutive photos of the person standing in front of the door as he she presses a button present on the main door.
4 then esp32cam will take some sample pictures of the face.
Raspberry pi receives this command and sends to arduino using serial port.
The images thus captured is processed by the python facial recognition software which then detects any known faces in the picture and unlocks the door for the people whose faces are identified successfully.
We ll discuss the arduino code and circuit design later in this.
In this project i will show you how you can create a facial recognition system by building an ip surveillance cctv with the esp32 cam module.
Before diving into the code let s connect the solenoid lock with the raspberry pi.
It s not that expensive to install implement.
When you run keylemon for the first time the face model wizard will show up and you l need to create your face model then procede and when you r finished the keylemon control center will show up there you can change your face model and under tab webcam you must uncheck stop using webcam after 60 seconds of inactivity and click apply step 3 is windows application task scheduler located in.
Block diagram of secured room access system controlling unit door lock door lock.
For locking we use the digitalmultiwrite method from library to write high value to d0 and low value to d3.
Like security purposes as of door unlocking attendance system face lock for mobile devices.
There are many identification systems but face recognition is now a days more preferred.
This will signal the arduino to unlock the door.
Finally it analyses the detected human face and compare it with images from the database which is achieved by using some features like the distance between the eyes etc.
Arduino control the lock accordingly.
And if it matches the program passes the control over to the microcontroller here the microcontroller used is arduino which in turn opens the door.
3 click on enroll face.
No physical interaction.
Face detection and data gathering.
In this way we can enroll multiple faces.
The esp32 cam can host a video streaming web server over wi fi with very good fps frames per second which we can access with any device from our network.
The project will consist of three phases.
2 turn on face detection and face recognition.
5 at last a green box will appear around the face.
In the existing system we are using password based door lock system which makes the user memorize password all the time.
Similarly for unlocking we ll write low value to d0 and high value to d3.