Welcome to the Attendance Recognition System repository! This project is designed to streamline attendance tracking using facial recognition technology. Below is an overview of the project, its structure, and how to get started.
- ๐จโ๐ Student Dataset Creation: Easily create datasets for students using the
data_creation.py
script. - ๐ต๏ธโโ๏ธ Facial Recognition: Detect and recognize student faces using advanced pre-trained models.
- ๐ Attendance Logging: Automatically log attendance into a CSV file (
attendance_log.csv
). - ๐ Data Preprocessing: Preprocess and embed dataset images for improved model performance.
- ๐ Model Training: Train an SVC model for robust facial recognition.
- ๐ Dashboard Visualization: View attendance logs in an intuitive GUI dashboard.
Hereโs a breakdown of the repository contents:
datasets/
: Contains datasets of student images. These datasets are created using thedata_creation.py
script.model/
: Stores pre-trained models:output/
: Stores output embedding files:
Attendance-recognition.py
: ๐ The main script for recognizing student faces and logging attendance intoattendance_log.csv
.pre-processing.py
: ๐ Preprocesses dataset images and generates embeddings for model training.model-training.py
: ๐๏ธโโ๏ธ Trains the SVC model for facial recognition.recognition.py
: ๐ต๏ธ A standalone face detection script using data fromstudent.csv
.dashboard.py
: ๐ Displays attendance logs in a graphical user interface (GUI) using data fromattendance_log.csv
.data_creation.py
: ๐ Script to create datasets for students.- Other Files:
- ๐ฎ
openface.nn4.small2.v1.t7
andhaarcascade_frontalface_default.xml
: Pre-trained face detection models. - ๐
student.csv
: Contains student data. - ๐
attendance_log.csv
: Logs attendance records. - ๐จ
block-diagram.png
: A visual representation of the project workflow.
- ๐ฎ
Ensure you have the following installed:
- ๐ป Python 3.8
- ๐ Required Python libraries:
- OpenCV
- NumPy
- Scikit-learn
- Pickle
- Clone the repository:
git clone https://github.com/your-repo/FaceRec-Attendance.git cd attendance-recognition
- ๐ธ Create Student Datasets:
python data_creation.py
- โ๏ธ Preprocess Images:
python pre-processing.py
- ๐ Train the Model:
python model-training.py
- ๐ต๏ธโโ๏ธ Recognize Faces & Log Attendance:
python Attendance-recognition.py
- ๐ง View Attendance Logs in GUI:
python dashboard.py
- ๐ธ Dataset Creation: Use
data_creation.py
to capture images of students and store them in thedatasets/
folder. - ๐ Preprocessing: The
pre-processing.py
script processes images and creates embeddings for better recognition. - ๐๏ธโโ๏ธ Model Training: Train the SVC model using
model-training.py
with the processed embeddings. - ๐ต๏ธ Face Recognition: The
Attendance-recognition.py
script identifies students fromstudent.csv
and logs their attendance. - ๐ Dashboard: Visualize attendance data in an interactive GUI via
dashboard.py
.
- Attendance logs are stored in
attendance_log.csv
. - Example:
Student Name,Date,Time John Doe,2024-12-20,10:30 AM
This project is licensed under the MIT License. See the LICENSE
file for more details.