-
Download or Clone the Repository
- Clone this repository to your local machine or download it as a ZIP file and extract it.
-
Install Dependencies
- Open a command prompt and navigate to the project folder.
- Run the following command to install the required packages:
pip install -r requirements.txt
-
Create a
TrainingImage
Folder- In the project directory, create a folder named
TrainingImage
.
- In the project directory, create a folder named
-
Update File Paths
- Open
attendance.py
andautomaticAttendance.py
. - Update all file paths in the scripts to match the paths on your system.
- Open
-
Run the Project
- Execute the
attendance.py
file to start the application.
- Execute the
- After launching the application, click on the Register New Student button.
- A small window will pop up where you can enter the student's ID and name.
- Click on the Take Image button.
- This will open a camera window.
- The system will detect your face and capture up to 50 images (you can modify the code to change this number).
- The images will be stored in the
TrainingImage
folder. - Tip: The more images you provide, the better the system's face recognition performance will be.
- Click on the Train Image button.
- This will train the model and convert the captured images into numeric format, which the computer can understand.
- The training process duration depends on your system's performance.
- Click on the Automatic Attendance button.
- Enter the subject name.
- The system will use the trained model to recognize faces and mark attendance automatically.
- Attendance data will be saved as a
.csv
file, with separate files created for each subject.
- Click on the View Attendance button.
- Attendance records will be displayed in a tabular format for easy review.
- Ensure that the camera on your system is functional and properly configured.
- Update paths and configuration details to align with your environment.
Enjoy using the Face Recognition Attendance System!