This project is an attendance system that uses face recognition to record attendance. It utilizes the OpenCV and face_recognition libraries to detect faces in webcam footage and compares them to a pre-existing set of known faces. If a match is found, the script will display the name of the matched person on the webcam footage and also stores the attendance in "Attendance.xlsx" file.
- Python 3
- OpenCV
- Face_recognition
- openpyxl
- PIL
- numpy
- Clone the repository
- git clone https://github.com/yourusername/attendance-system-face-recognition
- Install the required libraries
- pip install opencv-python
- pip install face_recognition
- pip install openpyxl
- pip install pillow
- pip install numpy
- Add the images of the students in the "ImagesAttendance" folder.
- Run the script
- python face_recognition_attendance.py
- The script will start capturing images from the webcam and compares the faces in the webcam footage with the images in the "ImagesAttendance" folder. If a match is found, it will display the name of the matched person on the webcam footage and also mark attendance in "Attendance.xlsx" file
- Press 'q' to exit the script
- The script currently only works with one webcam at a time
- The script only recognizes faces that are in the "ImagesAttendance" folder
- The script only records attendance once per person per run
- Add the ability to work with multiple webcams at a time
- Add the ability to add new faces to the "ImagesAttendance" folder during runtime
- Add the ability to record attendance multiple times per person per run
- Make the script more efficient by using more advanced techniques such as deep learning
- If you want to contribute to this project, feel free to create a pull request. Any contributions, big or small, are welcome.
- Phillip Wang for creating the face_recognition library.