Skip to content

๐Ÿ“ธ Automation of Attendance systems with facial recognition

License

Notifications You must be signed in to change notification settings

Parantap-Mishra/RollCall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ธ RollCall: Face Recognition Attendance System

A computer vision-based attendance tracker for classrooms, using facial recognition.


๐Ÿงพ Overview

This is a Tkinter-based GUI application that uses OpenCV and LBPH Face Recognition to automate attendance tracking through facial recognition. The system captures face data of each student, trains a local model, and marks attendance upon successful face identification โ€” all stored in an Excel sheet.

I am presenting this project to my school for potential integration into some classrooms as a tech-driven solution to reduce manual attendance efforts.

โš ๏ธ Note: This is the most basic version of the project. The current facial recognition system is not 100% accurate and may sometimes give false positives/negatives. Iโ€™m actively working on making it more reliable and efficient.


๐Ÿ’ก Features

  • Register new students using webcam
  • Capture 30 grayscale face images per student for training
  • Train a face recognition model using LBPH (Local Binary Pattern Histogram)
  • Live attendance tracking through webcam
  • Attendance is saved automatically in an Excel sheet, with date-wise tracking
  • Clean, interactive Tkinter GUI

๐Ÿ› ๏ธ Tech Stack

  • Python 3.13.5
  • Tkinter โ€“ GUI
  • OpenCV โ€“ Image capture and recognition
  • Pandas & OpenPyXL โ€“ Excel handling
  • NumPy โ€“ Numerical processing
  • Pillow โ€“ Image display in Tkinter

๐Ÿ”„ Project Flow

  1. Home Screen

    • Navigate between โ€œRegisterโ€ and โ€œTake Attendanceโ€ screens.
  2. Student Registration

    • Enter Name and ID.
    • Capture 30 face images via webcam (grayscale).
    • Images are saved under dataset/StudentName/.
    • Data is stored in students.xlsx.
  3. Model Training

    • After capturing, the model trains using LBPH algorithm.
    • A CSV file (labels.csv) stores label-name-ID mappings.
    • The model is saved in trainer.yml.
  4. Attendance Marking

    • System activates webcam, scans for known faces.
    • If a face is recognized (with confidence < 70), attendance is marked for todayโ€™s date in the Excel sheet.

๐Ÿš€ How to Run

  1. Install required libraries:
pip install opencv-python opencv-contrib-python pandas openpyxl pillow
  1. Run the app:
python main.py

Make sure your webcam is connected and working.


Screenshots

Screenshot 2025-07-06 112809 Screenshot 2025-07-06 113049 Screenshot 2025-07-06 113112

Excel sheet created by program for attendance Screenshot 2025-07-06 113219

๐ŸŽฏ Use Case & Vision

This project was built as a practical implementation of AI in education. I plan to showcase it to my school with hopes of seeing it deployed in some classrooms as a trial initiative. With further refinement, it can reduce classroom administrative load and introduce students to real-world AI.


๐Ÿ™‹โ€โ™‚๏ธ Author

Parantap Mishra Class 12, PCM with CS Lotus Valley International School, Noida ๐Ÿ‘จโ€๐Ÿ’ป Passionate about AI, coding, and building real-world projects

About

๐Ÿ“ธ Automation of Attendance systems with facial recognition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages