Face Recognition Based Door Lock System using Raspberry Pi

In today?s world of connectivity and smart  devices there is an urgent need to modify our existing day to day objects and make them smart, also it is not the era when we can blindly trust the old and conventional security measures, specifically speaking is our door locks. To change and moderniz

2025-06-28 16:32:32 - Adil Khan

Project Title

Face Recognition Based Door Lock System using Raspberry Pi

Project Area of Specialization Electrical/Electronic EngineeringProject Summary

In today’s world of connectivity and smart  devices there is an urgent need to modify our existing day to day objects and make them smart, also it is not the era when we can blindly trust the old and conventional security measures, specifically speaking is our door locks. To change and modernize any object we need to eliminate its existing drawbacks and add extra functionality.
The major drawbacks in a common door lock are that anyone can open a conventional door lock by duplicating or stealing the key and its simply impossible if we want our friends and family to enter our house, without being actually present over there. Thus why not just eliminate these problems. So, to simply convert this normal door lock into a smart lock, which can open the door whenever we turn up in front of the gate or when we want it to open up for someone else without being physically present, we need to modify the door. So an era has come where devices can interact with its users and at the same time ensure of their safety and keep improvising themselves.
 User can enter the house by recognizing the face. For face recognition, an image will be captured by a pi camera and pre-processed by Raspberry pi like converting, re-sizing and cropping. Then face detection and recognition are performed. Once the face is recognized by the classifier based on a pre-stored image library.

Project Objectives

The main purpose of the project is to improve security systems in homes, offices etc. The idea is to unlock a door by recognizing the face of an authorized person.
Are you fed up of losing your room keys? Or are you fed up of remembering which key opens which lock?
To solve these problems, we present to you the face recognition door lock.

To design and implement face authenticated real time security system.
1) To design and implement face authentication of captured image using camera by OpenCV/ Python platform on Raspberry Pi.
2) The captured image is compared and verified with the database, if found matching then the access to locking device is allowed.

Project Implementation Method

The project will be implemented using Raspberry pi as the main processing unit.
A PIR Sensor will be used to sense the presence of human near the system after that the camera will capture the image of the person which will be processed by the Raspberry pi & its output will be given to an electric selonoid lock. 

Benefits of the Project

1.Safety
Automated security processes also mean that less security personnel would be put in potentially dangerous situations.
2.Fast and Accurate
With the ever-increasing demand for speed and the growing number of cyber attacks, having fast and accurate technology is key. Facial recognition technology provides verification that is convenient, quick, and accurate. Although possible, it is very difficult to fool facial recognition technology, which makes it beneficial in helping prevent fraud.
Security
A facial biometric security system can drastically improve your security because every individual who enters your premises will be accounted for. Any trespassers will be quickly captured by the recognition system and you would be alerted promptly. With a facial recognition security system, you can potentially reduce the costs of hiring security staff.
3.Fully Automated
Instead of manual recognition, which is done by security guards or the official representatives outside of the company’s premises, the facial recognition tech automates the identification process and ensures its flawlessness every time without any haltings. You won’t even need an employee to monitor the cameras 24/7. Automation means convenience and reduces the expenses too. Therefore, any entrepreneur would be fond of the fact that image identification systems are fully automated.
4.Tighter security
Facial biometric time tracking allows you to not only track employees but also add visitors to the system so they can be tracked throughout the worksite. Access can be denied to any person not in the system. If an incident should occur, facial recognition software can provide evidence for an investigation with a scanned image of a person or persons who have entered the area.
5.Time saving and reduced contagion
 When contagious illnesses such as colds and viruses spread throughout the workforce, it can increase the incidence of employee absences and significantly reduce productivity. With facial recognition, employees can enter and leave the facility in considerably less time. There is no need to touch the surface of the system to clock in or out. This saves time, as well as minimizing the spread illnesses due to physical contact.
6.Ease of integration
 Biometric facial recognition technology can be easily programmed into your time and attendance system.
7.Maintenance free system
Biometric access control system is one time cost system. Once you have installed then after you have to maintain a simple database. You can add or remove authorized persons easily and without any cost. On other side, if you use identity card then you have to issue identity card of every authorized person. It leads to more cost. There is also a threat of lost of identity card.

Technical Details of Final Deliverable

The prototype of this project will be a smart doorlock which would provide access to only authorised persons by recognising the face.
The following are the main components that would be used to construct the prototype:
Raspberry pi(4)
PIR Sensor
Camera module
Selonoid lock
Electronic Relay

Final Deliverable of the Project Hardware SystemCore Industry ITOther Industries Security Core Technology Artificial Intelligence(AI)Other TechnologiesSustainable Development Goals Decent Work and Economic GrowthRequired Resources
Item Name Type No. of Units Per Unit Cost (in Rs) Total (in Rs)
Total in (Rs) 12520
Raspberry Pi(4) Equipment180008000
PIR Sensor Equipment1130130
Clone Camera Equipment1980980
C type cable Equipment1100100
Heat Sink Equipment1300300
Single channel Relay Equipment1100100
Selonoid lock Equipment1380380
Network Cable Equipment1130130
Working copy Miscellaneous 1200200
Printing of proposal & Presentation Miscellaneous 101001000
Printing of thesis Miscellaneous 26001200

More Posts