Using OpenCV and Flask, I have built this Face Attendance System which detects and recognizes a face along with a barcode on a video capture and marks it's attendance.
Why did I think of making this? Well our college's ID card contains out photo and a barcode which on decoding gives our college roll number. So we could use this system in order to take automatic attendance
-
Clone the project into your required folder
-
The photos folder contains the images of students whose attendance you want to track.
-
If you change the student pics, make sure to do the same for face encodings in the main.py folder
-
Open terminal. Run python main.py and show the image as in the above example and the attendance will be stored in a newly created CSV file
- OpenCV - Computer Vision Library
- Pyzbar - Used to detect and decode barcodes
- Flask - Used for routing
- Face-recognition - Library to store face encodings and to compare faces
- Make sure to generate a custom barcode for your use from various online sites.
- Make sure that the face and barcode are shown to the camera at the same time
- It may not detect barcodes easily so try to adjust the barcode