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.
Face recognition door lock system using arduino.
Arduino control the lock accordingly.
In this tutorial you are going to learn how to build a facial recognition based door lock using a raspberry pi.
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.
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.
Face detection and data gathering.
2 turn on face detection and face recognition.
In the existing system we are using password based door lock system which makes the user memorize password all the time.
This will signal the arduino to lock the door.
So to overcome this drawback we designing a new system with face recognition.
4 then esp32cam will take some sample pictures of the face.
What is face recognition system.
Raspberry pi receives this command and sends to arduino using serial port.
The project will consist of three phases.
Block diagram of secured room access system controlling unit door lock door lock.
It s not that expensive to install implement.
Like security purposes as of door unlocking attendance system face lock for mobile devices.
Prepare your raspberry pi with latest raspbian operating system and get ready to do some programming.
There are many identification systems but face recognition is now a days more preferred.
We ll discuss the arduino code and circuit design later in this.
Before diving into the code let s connect the solenoid lock with the raspberry pi.
3 click on enroll face.
For locking we use the digitalmultiwrite method from library to write high value to d0 and low value to d3.
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.
5 at last a green box will appear around the face.
In this way we can enroll multiple faces.
This will signal the arduino to unlock the door.
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.
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.
Finally esp32 cam face recognition lock is ready.
Similarly for unlocking we ll write low value to d0 and high value to d3.