This project is Say My Name, a Face Recognition Attendance System developed using Python, OpenCV, and Firebase. It allows students to log their attendance by scanning their faces, and admins can view attendance records and generate reports.
- Student Authentication: Uses face recognition to verify student identity and log attendance.
- Admin Access: Admins can log in via face recognition and view attendance records.
- Database Integration: Attendance records are stored and retrieved from Firebase.
- Real-Time Data Processing: Updates attendance data in real-time.
- Report Generation: Exports attendance data in XML and PDF formats.
- Python (Face Recognition, OpenCV, Firebase Admin SDK)
- Firebase (Realtime Database, Storage)
- Google Sheets (Attendance record viewing)
- Tkinter (User Interface for role selection)
- HTML/CSS (Admin Dashboard UI)
Ensure you have the following installed:
- Python 3.x
- OpenCV (
pip install opencv-python) - Face Recognition (
pip install face-recognition) - Firebase Admin SDK (
pip install firebase-admin) - Numpy (
pip install numpy) - Tkinter (Included with Python)
- Clone the repository:
git clone https://github.com/yourusername/SayMyName.git cd SayMyName - Install dependencies:
pip install -r requirements.txt
- Set up Firebase:
- Create a Firebase project and enable Realtime Database & Storage.
- Download the
serviceAccountKey.jsonand place it in the project folder.
- Run the program:
python role_selection.py
-
Students
- Click on "Student" to start face recognition.
- Show your face in front of the webcam.
- If recognized, attendance is logged in Firebase.
- If scanned again within 2 hours, it will show "Attendance Already Taken".
-
Admins
- Click on "Admin" and log in using face recognition.
- The system will open the admin dashboard.
- View attendance records and download reports.
AttendEase/
│-- role_selection.py # UI for role selection
│-- main.py # Student face recognition
│-- adminmain.py # Admin face recognition
│-- AddingDataToDb.py # Adds student/admin data to Firebase
│-- EncodeGenerator.py # Generates face encodings
│-- admin.html # Admin dashboard UI
│-- requirements.txt # Dependencies
│-- serviceAccountKey.json # Firebase credentials
│-- Student Images/ # Folder for student face images
│-- Admin Images/ # Folder for admin face images