← All projects
Computer Vision · Python

Face Recognition Attendance System

Marks attendance from a live camera feed — and can explain what an embedding is when asked.

A camera-based attendance system that enrolls students from a few photos, recognises faces in a live feed, and writes attendance to a database with a timestamp. It handles the two things a demo version never does: rejecting an unknown face instead of guessing the closest match, and refusing to mark the same student twice in one session. Examiners always ask how the recognition works — the sessions make sure you can draw it on the board.

Suits
BCA ·B.Tech ·MCA ·Diploma
Level
Intermediate
Live sessions
6
Seats per college
2 / year

What it does

  • Enroll a student from a handful of photos and build their face encoding
  • Live webcam feed detecting and labelling multiple faces at once
  • Unknown faces are rejected, not matched to the nearest student
  • Duplicate-entry guard — one mark per student per session
  • Attendance dashboard with date filters and per-subject percentage
  • CSV export for submission to the department

What the sessions cover

  1. 01How face recognition actually works — detection, encoding, distance threshold
  2. 02The enrollment pipeline and where encodings are stored
  3. 03Live video capture, frame handling, and why you do not process every frame
  4. 04Matching logic, the unknown-face threshold, and the duplicate guard
  5. 05Flask app, database schema, and the attendance dashboard
  6. 06Accuracy limits, lighting failure cases, and mock viva

Stack

PythonOpenCVface-recognition (dlib)FlaskSQLiteNumPy

How it works

Enrolment takes a handful of photos of a student. For each, the face-recognition library, built on dlib, locates the face and computes a 128-number encoding; the average of those encodings is stored as the student's reference.

During a class, OpenCV reads frames from the webcam. To keep it real-time, only every few frames are processed, at reduced size. Each detected face is encoded and compared with all enrolled encodings by Euclidean distance.

A face is identified only if its nearest distance is under a strict threshold (0.5, tighter than the library's 0.6 default); otherwise it is labelled unknown. A recognised student is marked present once per session, and the Flask dashboard shows attendance by date and subject with percentages and a CSV export.

The data

Enrolment photos captured by the app with the student's consent, encodings stored in SQLite as arrays alongside student records, and attendance rows of student, session, subject and time. Raw photos can be deleted after enrolment, since recognition needs only the encodings. The public Labeled Faces in the Wild dataset is useful for testing the threshold.

The hard parts examiners ask about

Unknown faces

Nearest-match logic always finds someone. A distance threshold turns a stranger into unknown instead of marking the closest-looking student present, and the project shows how the threshold trades false matches against missed ones.

Speed

Encoding every frame at full resolution is too slow on a laptop. Downscaling frames and processing every third one keeps the feed smooth without missing anyone who stays in view.

Proxy attendance with a photo

Holding up a phone photo can fool a simple system. The project discusses liveness checks such as blink detection as an extension and is honest that the base version does not include one.

Viva questions on this project

What is a face encoding?
A 128-dimensional vector produced by a deep network trained so that photos of the same person produce vectors close together and photos of different people produce vectors far apart.
How do you decide two faces are the same person?
By the Euclidean distance between their encodings. Below the threshold, 0.5 here, they count as a match; above it, the face is unknown.
Why not use a CNN classifier with one class per student?
A classifier must be retrained every time a student joins. With encodings, enrolling a student is just storing a new vector, and no training is needed.
How do you stop the same student being marked twice?
A unique constraint on student and session in the attendance table. Later detections in the same session are ignored.
Can someone fool it with a photo?
The base version can be fooled by a printed or on-screen photo. Liveness detection, for example asking for a blink measured with eye landmarks, is the standard fix and is discussed as an extension.

Pick what you need

Direct UPI / bank transfer in monthly installments. Sessions start after the first installment; handover is after the final installment. Full terms — including what happens if you stop midway.

Source

₹4,000

single payment

  • Full source code
  • Local setup guide
  • Sample dataset / seed data
  • One handover call
Enquire about Source

Academic

₹7,500

or ₹3,800/month × 2

  • Everything in Source
  • Project report (synopsis + full document)
  • Presentation deck
  • ER / DFD / architecture diagrams
  • Deployment walkthrough
Enquire about Academic

Mentored

Most picked

₹13,000

or ₹4,400/month × 3

  • Everything in Academic
  • 6 live sessions on Google Meet
  • Line-by-line code walkthrough
  • Viva question prep + mock viva
  • One module varied for you (dataset / domain)
  • WhatsApp support until submission
Enquire about Mentored
Opening 3 seats

This page has no reviews on it yet. Be the reason it does.

The first 3 students get 40% off in exchange for an honest review and permission to show your finished project here. Same build, same sessions, same handover — the discount is the price of going first, and it is not coming back once those seats are gone.

Claim a seat on WhatsApp

Two things I hold myself to

  • Only 2 students from your college get this project in an academic year. On the Mentored tier one module is varied for you — the dataset, the domain, or a feature — so no two submissions read the same.
  • You build nothing. You just have to be able to explain it. The project is delivered finished — code, report, diagrams, deployed. Then daily 60-minute sessions on Google Meet after 8:00 PM IST, walking the code you are submitting, ending in a mock viva. Turn up and you will know it well enough to answer anything the panel asks.

Enquire about this project

Tell me your submission deadline and which tier fits. You get a session schedule and an installment split back — usually within a day.