Python • OpenCV • Real-time Attendance

Face Recognition Attendance System

A real-time face recognition attendance system that detects faces through a webcam, identifies registered users, and records attendance in CSV format.

Riddhi Patel
Present • CSV saved

Features

Built for quick, reliable attendance tracking

01

Real-time Detection

Uses a webcam feed to detect faces live and process attendance without manual entry.

02

Face Recognition

Matches detected faces against known images using the face_recognition library.

03

CSV Attendance

Stores attendance records in a simple CSV file for easy review, sharing, and analysis.

04

Simple Workflow

Designed as a practical project with a clear dataset, recognition flow, and output file.

How It Works

From webcam frame to attendance record

1

Load Known Faces

The system reads stored images, extracts face encodings, and prepares them for matching.

2

Capture Webcam Feed

OpenCV accesses the camera and processes each frame to locate faces in real time.

3

Compare and Identify

Detected face encodings are compared with known encodings to identify the person.

4

Mark Attendance

Once recognized, the person is marked present and the record is saved in CSV format.

Screenshots

Project demo preview

Webcam demo showing real-time face detection with the recognized name Riddhi
Webcam Recognition

Real-Time Face Detection

The system detects a face through the webcam, matches it with stored student images, and displays the recognized name in real time.

Attendance CSV file showing present records for recognized students
Attendance Record

Attendance CSV Logging

Recognized students are automatically logged into a CSV file with their name, date, time, and attendance status.

Technologies Used

Compact stack, practical results

Python OpenCV face_recognition NumPy CSV HTML CSS JavaScript

Future Improvements

Ideas to make the system production-ready

Admin Dashboard

Add a web interface to view, filter, and export attendance records.

Database Storage

Move from CSV files to a database for stronger search and reporting.

Authentication

Protect attendance data with login roles for admins and users.

Analytics Reports

Generate summaries for attendance percentage, dates, and student history.