A modern, AI-powered attendance management system that uses facial recognition technology to automate student attendance tracking with high accuracy and efficiency.
- 🤖 AI-Powered Face Recognition - Advanced facial detection and identification
- 📸 Smart Registration - Easy student enrollment with automated image capture
- ⚡ Real-time Attendance - Instant attendance marking with live camera feed
- 📊 Automated Reporting - Generate detailed attendance reports in CSV format
- 🎨 Modern Dark UI - Eye-friendly interface with responsive design
- 🔒 Secure & Reliable - Local data storage with no cloud dependencies
- Python 3.9 or higher
- Webcam
- Windows/Linux/macOS
-
Clone the repository
git clone https://github.com/HARSHGUPTA10123/CLASS-VISION.git cd CLASS-VISION -
Install dependencies
pip install -r requirements.txt
-
Create Required Folders
# Create necessary directories for the application mkdir TrainingImage mkdir TrainingImageLabel mkdir StudentDetails mkdir Attendance -
Run the application
python attendance.py
- Click "Register" button
- Enter Enrollment Number and Name
- System captures 30 facial images automatically and stores in
TrainingImage/folder - AI model trains on the captured data
- Select "Take Attendance"
- Choose subject name
- System detects faces in real-time and marks attendance
- Records saved with timestamps in
Attendance/folder
- Click "View Attendance"
- Browse attendance records by subject from
Attendance/folder - Export data for further analysis
CLASS-VISION/
├── attendance.py # Main application file
├── automaticAttedance.py # Automatic attendance module
├── takeImage.py # Image capture module
├── trainImage.py # Model training module
├── show_attendance.py # Attendance viewing module
├── haarcascade_frontalface_default.xml # Face detection model
├── requirements.txt # Python dependencies
├── TrainingImage/ # Student face database (create this folder)
├── TrainingImageLabel/ # Trained model files (create this folder)
├── StudentDetails/ # Student information (create this folder)
├── Attendance/ # Attendance records (create this folder)
└── UI_Image/ # Application icons and images
- Python - Core programming language
- OpenCV - Computer vision and image processing
- Tkinter - GUI development
- PIL - Image handling
- NumPy - Numerical computations
- Pandas - Data management
- Haar Cascades - Face detection algorithm
- LBPH - Face recognition algorithm
- Face Detection - Haar Cascade classifier
- Image Preprocessing - Grayscale conversion and normalization
- Feature Extraction - Local Binary Patterns Histograms (LBPH)
- Model Training - Supervised learning on captured images stored in
TrainingImage/ - Real-time Recognition - Live camera feed processing
FOR SCREENSHOTS VISIT THIS LINK:-
https://drive.google.com/drive/folders/1Ra9DFry6_WJ33CBOjV0W4rTjpRR3QoeM?usp=sharing
Update these paths in the respective files if needed:
```python
# File paths configuration
haarcasecade_path = "haarcascade_frontalface_default.xml"
trainimagelabel_path = "./TrainingImageLabel/Trainner.yml"
trainimage_path = "./TrainingImage"
studentdetail_path = "./StudentDetails/studentdetails.csv"
-
"TrainingImage folder not found"
# Solution: Create the folder manually mkdir TrainingImage -
Camera access denied
- Ensure no other application is using the camera
- Grant camera permissions to Python
-
Dependencies installation failed
pip install --upgrade pip pip install -r requirements.txt
Harsh Gupta
- GitHub: @HARSHGUPTA10123
- Project: CLASS VISION Attendance System
- OpenCV community for excellent computer vision libraries
- Python community for comprehensive documentation