Skip to content

r-sajal/Automatic-Attendance-System-Using-Computer-Vision

Repository files navigation

Automatic-Attendance-System-Using-Computer-Vision

Introduction -->

Hola Amigos!
This system aims to simplify the regular attendance method by automating it with the help of face recognition and saving the precious time of student and faculty.
For building this system we have used various concepts of Machine Learning and DeepLearning which can be found in PPT provided in this repo.
This project is completely based on PYHON.
So if you don't have python. Don't worry you can go ahead and download it from HERE .
Any Version above 3.6 would be a good fit.

Moules used -->

  • OpenCV Contrib 4.0.1
  • Pillow
  • Numpy
  • Pandas
  • Shutil
Or run the following command in cmd/bash
 pip install -r requirements.txt 

Run the code using:

python3 main.py

Features of System -->

  • Check Camera
  • Capture Faces
  • Train Faces
  • Recognize Faces & Attendance
Snippet for Same is below -->

1. Check Camera: Checks if webcam is accessible or not
2. Capture Faces: Registers student with student ID and Student Name. 101 photos of wach student is taken and stored in imagetraining folder with student name and id as image name.
3. Train Faces: Creates a intermediate vector which will be used to recognize faces later on. Creates a Trainner.yml which will store all the intermediate vectors.
4. Recognize Faces and Attendance: opens webcam and mark attendance of student.
You have to press keys according to command you want to execute.

Things to keep in mind:

Onces you start command 4 you can only escape by pressing key- q on keyboard.

Results:

Attendance file will be saved in attendane folder with date.
Some snapshots of working system are below.
Not registered would look something like this.

Registered Student would look like below image.