A simple and easy to use Attendance System
Language: Python
Packages: OpenCV, Tkinter, face_recognition, openpyxl, numpy
Supported Python 3.7-3.9
Clone the repo
git clone https://github.com/iam7t9/Face-Recognition-Attendance.git
cd Face-Recognition-Attendance
For Windows
python -m venv env
.\env\Scripts\activate
for Linux
python3 -m venv env
source ./env/bin/activate
Download dlib compiled wheels suitable for your python version from Here
pip install <dlib compiled wheels>
pip install -r requirements.txt
- Create folders
faces
andface_encodings
. - Add images with ids as name in the faces directory.
- For the first time, generate encoadings for faces. Uncomment the
app.train()
inmain.py
file
if __name__=="__main__":
# Create the Tkinter window
window = tk.Tk()
# Create the CameraApp instance
app = CameraApp(window)
# Uncomment following line to generate encodings
# app.train()
# Run the Tkinter event loop
window.mainloop()
python main.py
The attendance record will be added in the database.xlsx file
Contributions are always welcome!