🚀 Automated attendance tracking using YOLOv8 & FaceNet
✅ Face Detection & Recognition (YOLOv8 + FaceNet)
✅ Add New Students with their face embeddings
✅ Mark Attendance from classroom images
✅ View & Manage Attendance History 📜
✅ Search & Filter Attendance Records 🔍
✅ Labeled Attendance Images for verification 🖼️
✅ Bootstrap UI for a clean & responsive design 🎨
✅ Clear Attendance History (With Confirmation) ❌
✅ Check Registered Students List 📋
✅ Access the App from Any Device on Your Network 🌍
git clone https://github.com/yourusername/FaceTrack.git
cd FaceTrackpip install -r requirements.txtpython app.pyOnce the Flask server is running, open your browser and go to:
http://127.0.0.1:5000/If you want to access the web app from a different device on the same network:
http://YOUR_LOCAL_IP:5000/📂 FaceTrack/
│── 📂 static/ # (CSS, JS, Images, Screenshots)
│── 📂 templates/ # HTML UI files
│ │── base.html # Navbar & Layout
│ │── index.html # Home Page
│ │── add_student.html # Register a new student
│ │── mark_attendance.html # Upload class image
│ │── attendance_history.html # View attendance records
│ │── registered_students.html # View enrolled students
│── 📂 uploads/ # Stores uploaded images (student/classroom)
│── 📂 embeddings/ # Stores face embeddings (.npy files)
│── app.py # Flask Backend (Main Application)
│── database.db # SQLite Database for attendance records
│── yolov8x-face-lindevs.pt # YOLOv8 Model for face detection
│── requirements.txt # Python dependencies file
│── README.md # Project Documentation
- Navigate to "Add Student".
- Upload a clear face image & enter the name.
- The system stores the face embedding for recognition.
- Go to "Mark Attendance".
- Upload a classroom image with multiple students.
- The system detects & recognizes faces and marks attendance.
- Click "View Attendance".
- Search & Filter records.
- See labeled attendance images for verification.
- Click "Registered Students" to see all enrolled names.
- Click "Clear Attendance" on the history page.
- Confirmation popup prevents accidental deletion.
✅ Date-wise Attendance Filtering 📅
✅ Export Attendance Reports (CSV, Excel, PDF) 📂
✅ Generate Graphs & Attendance Analytics 📊
✅ Real-Time Webcam Support for Live Attendance 🎥
🚀 Want to contribute? Follow these steps:
- Fork this repository.
- Create a branch (
git checkout -b feature-branch). - Commit changes (
git commit -m "Added a new feature"). - Push to GitHub (
git push origin feature-branch). - Create a Pull Request.
This project is licensed under the MIT License. Feel free to use and modify.
- YOLOv8 by Ultralytics for Face Detection.
- FaceNet for Face Recognition.
- Flask for Backend API.
- Bootstrap for Modern UI.
💡 Found an issue? Create an Issue.
🎯 Want new features? Suggest them in Discussions.
🚀 Like this project? Don’t forget to Star ⭐ the Repo!


