Skip to content
  • SiteMap
  • Our Services
  • Frequently Asked Questions (FAQ)
  • Support
  • About Us

UpdateGadh

Update Your Skills.

  • Home
  • Projects
    •  Blockchain projects
    • Python Project
    • Data Science
    •  Ai projects
    • Machine Learning
    • PHP Project
    • React Projects
    • Java Project
    • SpringBoot
    • JSP Projects
    • Java Script Projects
    • Code Snippet
    • Free Projects
  • Tutorials
    • Ai
    • Machine Learning
    • Advance Python
    • Advance SQL
    • DBMS Tutorial
    • Data Analyst
    • Deep Learning Tutorial
    • Data Science
    • Nodejs Tutorial
  • Blog
  • Contact us
  • Toggle search form
Face Recognition Attendance System'

Face Recognition Attendance System with Python Django

Posted on March 21, 2025January 14, 2026 By Updategadh No Comments on Face Recognition Attendance System with Python Django

A simple project based on Face Recognition Attendance System which is developed using Python, Django, and OpenCV. This project is designed to provide a modern way of managing student or employee attendance through facial recognition. By capturing and recognizing faces in real-time, the system automatically marks attendance without the need for manual entry.

The application is straightforward, practical, and directly connected to real-world scenarios where accuracy and time management are important. It is an excellent project for students who want to explore the integration of machine learning with web applications while solving a real problem in educational and organizational setups.

 Tech Stack Overview

TechnologyPurpose
PythonCore programming language
DjangoWeb framework for routing/views/forms
OpenCVFace detection and recognition
PandasHandle CSV read/write for attendance
Pillow (PIL)Image processing during training
HTML/CSS (basic)Frontend forms and attendance table display

 Core Features

  • Student face registration via webcam
  • Face recognition with real-time webcam feed
  • Attendance stored daily in CSV files
  • Trainable model (LBPH Face Recognizer)
  • No need for admin panel or database

Key Functionalities

1. register_student(request)

Allows students to register their ID and Name, and capture 20 face images using a webcam.

Highlights:

  • Faces detected using Haar Cascade
  • Manual image capture ('c' key)
  • Saves data to StudentDetails.csv

2. train_model(request)

Trains the model using the LBPH (Local Binary Pattern Histogram) algorithm from OpenCV.

Highlights:

  • Reads all images from TrainingImage/
  • Converts to grayscale using Pillow
  • Detects faces and associates with ID
  • Saves model as trained_model.yml

3. take_attendance(request)

Real-time face recognition and attendance marking.

Highlights:

  • Loads trained model and student data
  • Detects faces, predicts ID, fetches Name
  • Avoids duplicate entries per session
  • Saves daily CSV in Attendance/

CSV Format:

pgsqlCopy codeID, Name, Date, Time

4. view_attendance(request)

Displays attendance for the current date on a simple HTML page.

Highlights:

  • Reads CSV for today’s date
  • Renders a table in attendance.html
  • Shows empty state if no attendance file exists

 File Structure Snapshot

pgsqlCopy codemedia/
├── TrainingImage/
├── Attendance/
│   └── Attendance_YYYY-MM-DD.csv
└── StudentDetails.csv

recognition/
├── views.py
├── trained_model.yml
├── haarcascade_frontalface_default.xml

templates/
├── index.html
├── register.html
└── attendance.html

Usage Flow

  1. Navigate to /register/ and register student face
  2. Go to /train/ and train the face recognition model
  3. Use /take_attendance/ to mark attendance
  4. Check /view_attendance/ to see today’s attendance
Face Recognition Attendance System with Python Django
Face Recognition Attendance System with Python Django
Face Recognition Attendance System with Python Django
Face Recognition Attendance System with Python Django
Face Recognition Attendance System with Python Django
Face Recognition Attendance System with Python Django

Thoughts

This lightweight system is great for small-scale projects and educational purposes only. You can extend it by:

  • Adding email notifications after attendance
  • Integrating student login system
  • Visualizing attendance stats

 

Buy Now
Post Views: 1,729
Python Projects Tags:django face recognition, face recognition attendance system django github, face recognition attendance system with python django example, face recognition attendance system with python django github, face recognition attendance system with python django pdf, face recognition attendance system with python django project, face recognition attendance system with python django using, face recognition based attendance system using python project report

Post navigation

Previous Post: Understanding UNIQUE Key in SQL with Examples
Next Post: Registration and Login System with PHP and MySQL – Secure Web Authentication

More Related Articles

Advance College Management System in django Advance College Management System in Django Python Projects
Python Blog Website Using Django Python Blog Website Using Django Python Python Projects
python projects with source code for students 70+ Python Projects with Source Code for Beginners, Intermediate and Final Year Students Python Projects

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may also like

  1. Food Management System in Python [Django Framework ]
  2. File Sharing Website Using Python in Django
  3. Email Spam Detection Web App with Flask
  4. Real-time Sales Prediction Using Flask and Scikit-Learn
  5. Best Complaint Management System Using Python Django Web Application
  6. Pharmacy Management System Project using Python Django

Most Viewed Posts

  1. Top Large Language Models in 2025
  2. Online Shopping System using PHP, MySQL with Free Source Code
  3. login form in php and mysql , Step-by-Step with Free Source Code
  4. Flipkart Clone using PHP And MYSQL Free Source Code
  5. News Portal Project in PHP and MySql Free Source Code
  6. User Login & Registration System Using PHP and MySQL Free Code
  7. Top 10 Final Year Project Ideas in Python
  8. Blog Site In PHP And MYSQL With Source Code || Best Project
  9. Online Bike Rental Management System Using PHP and MySQL
  10. E learning Website in php with Free source code
  • AI
  • ASP.NET
  • Blockchain
  • ChatCPT
  • code Snippets
  • Collage Projects
  • Data Science Project
  • Data Science Tutorial
  • DBMS Tutorial
  • Deep Learning Tutorial
  • Final Year Projects
  • Free Projects
  • How to
  • html
  • Interview Question
  • Java Notes
  • Java Project
  • Java Script Notes
  • JAVASCRIPT
  • Javascript Project
  • JSP JAVA(J2EE)
  • Machine Learning Project
  • Machine Learning Tutorial
  • MySQL Tutorial
  • Node.js Tutorial
  • PHP Project
  • Portfolio
  • Python
  • Python Interview Question
  • Python Projects
  • PythonFreeProject
  • React Free Project
  • React Projects
  • Spring boot
  • SQL Tutorial
  • TOP 10
  • Uncategorized
  • Real-Time Medical Queue & Appointment System with Django
  • Online Examination System in PHP with Source Code
  • AI Chatbot for College and Hospital
  • Job Portal Web Application in PHP MySQL
  • Online Tutorial Portal Site in PHP MySQL — Full Project with Source Code

Most Viewed Posts

  • Top Large Language Models in 2025 (8,616)
  • Online Shopping System using PHP, MySQL with Free Source Code (5,227)
  • login form in php and mysql , Step-by-Step with Free Source Code (4,875)

Copyright © 2026 UpdateGadh.

Powered by PressBook Green WordPress theme