This proposed system acts as a home security system for both Person detection and provide security for door access control by using facial recognition for the home environment.The human body is identified as an intruder within a home environment achieved by capturing image from web camera and processing will be done on captured images. The web camera captures the series of images as soon as the person come front of the door. The captured image is compared using our face recognition algorithm model. If the person is the authorized one, then the door is unlocked. Conversely, if the person is not the authorized one. The image of the person is sent to the authority, if he recognizes the person and desires to open the door. He can remotely access the door and allow the person in.
remotely access the door through email
record video of the intruder in case of any unsual activity
- Python
- Opencv
- face_recognition module
- RASPBERRY PI
- LOGITECH C310 WEBCAM HD
- ELECTRONIC DOOR STRIKE
The hardware setup images are given in images folder.
Install the dependencies .
$ pip3 install opencv-python
$ pip3 install face-recognition
Installing the dependencies in raspberry pi follow this
1 . First run the detection.py which capture a series of images of authority. This is the initial step as this images are used for training the face recognition module.
2 .Recognition.py contains the code for recognizing the face
3.The output of this file is either "known" or "unknown".In case of known the lock.py file is executed and door will open
4.Else send_mail.py file will be executed which request an access for opeing door to the authority through email.
5.The receive_mail.py wait for reply from the authority.Upon receiving the mail if input is "allow" the door opens.
6.Even after the denying the access to door the video_cap.py is executed which captures a video of the intruder's activity and send the mail to the authority through e-mail.
Inorder to tun python file in raspberry pi use the following cmd
$LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0 python3 "PYTHON FILE".py
MIT
Free Software, Hell Yeah!