This project is a facial attendance system that utilizes Flask for the backend, Bootstrap 5 for the frontend, and OpenCV for face detection and recognition.
π¦ facial-attendance-system ββ backend β ββ app.py β ββ instance β β ββ face_recognition_db.sqlite β ββ templates β ββ index.html ββ dataset.py ββ face_recognizer.py ββ haarcascade_frontalface_default.xml ββ trainer.py ββ trainer β ββ trainer.yml ββ webcam_dataset.py
- π§ Backend developed with Flask
- π¨ Webpage styled using Bootstrap 5
- π€ Facial detection and recognition using OpenCV
- πΈ Dataset gathering through webcam or images
- π Model training for accurate recognition
- π Attendance marking based on recognized faces
- πΈ Run dataset.py to gather photos from a video or webcam_dataset.py to capture photos from a live camera feed for the dataset.
- π Run
trainer.py
to train the model using the gathered dataset. - βοΈ Ensure that the Flask server is running by executing
python3 app.py
. - π Run
face_recognizer.py
to recognize faces and mark attendance.
To run the Flask server:
python3 app.py
Access the web interface at http://localhost:5000.
You can install the required packages using pip3. Run the following command:
pip3 install Flask opencv-python opencv-contrib-python requests
π€ Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.