Skip to content

sezaacar/SmartLockSystemByFaceRecoginition

Repository files navigation

Q# faceRecognitionDOORLOCKSYSTEM

This repository contains code for facial recognition using openCV and python with a tkinter gui interface. If you want to test the code then run train.py file ring.py is panel of outside the door. train.py is admin panel to train person that allowed.

IMPORTANT NOTE ###### if you want to run in computer you need to change all location off files to your location.

Technology used : -Raspberry pi 3b -openCV (Opensource Computer Vision) -Python -tkinter GUI interface -5v Relay -12v Selenoid Lock -12v power supply -screen

Here I am working on Face recognition based Attendance Management System by using OpenCV(Python). One can mark their attendance by simply facing the camera.

How it works :

When we run train.py a window is opened and ask for Enter Id and Enter Name. After enter name and id then we have to click Take Images button. By clicking Take Images camera of running computer is opened and it start taking image sample of person.This Id and Name is stored in folder StudentDetails and file name is StudentDetails.csv. It takes 60 images as sample and store them in folder TrainingImage.After completion it notify that iamges saved.

After taking image sample we have to click Train Image button.Now it take few seconds to train machine for the images that are taken by clicking Take Image button and creates a Trainner.yml file and store in TrainingImageLabel folder.

Now all initial setups are done. By clicking Track Image button camera of running machine is opened again. If face is recognised by system then Id and Name of person is shown on Image. Press Q(or q) for quit this window.After quitting it attendance of person will be stored in Attendance folder as csv file with name, id, date and time and it is also available in window. when it recognize your face in 30 sec by known sample or pressing "q" from keyboard will activate to lock

Submitted by :Ali Seza Acar

https://www.linkedin.com/in/seza-acar/

Gaziantep University B.Sc., Electrical and Electronics Engineering

THIS PROJECT HAS BEEN REWARED BY "GAZIANTEP UNIVERSITY /Turkey" AT January 2020 .

Note : if you would like to assembly the code on your end , please note that you will need to make sure Files locations are correct on Code branch .