Welcome to SnapClass

AI Powered
Attendance System

Revolutionizing the classroom with next-gen computer vision and voice biometrics. Trusted by educators for speed, accuracy, and security.

Start AI Attendance Explore Journey
Snap Student
Snap Landing

Innovative Features

📸

AI Face Analysis

Advanced neural networks recognize every student's face from a single class photo, making attendance instant and accurate.

🎙️

Sequential Voice ID

Students say "Present" one-by-one, and our audio-AI matches their voice biometrics against stored embeddings in real-time.

📱

QR-Driven Roster

Course codes generate unique QR codes for instant student enrollment. No more manual entry or data management headaches.

The Teacher's Journey

Step 01

Secure Login

Start your session with our high-security authentication portal. Your data is encrypted and synced across all your devices.

Login Portal
Step 02

Interactive Dashboard

Manage all your subjects, attendance logs, and student rosters from a single, beautiful unified stream.

Teacher Dashboard
Step 03

Course Management

Creating a new subject is a breeze. Just name it, and SnapClass generates everything you need to start tracking.

Create Course
Step 04

FaceID Attendance

Use high-speed computer vision to scan the entire room. Our AI identifies every student from a single class photo in milliseconds.

FaceID Attendance
Step 05

Voice ID Attendance

Switch to voice mode for a futuristic roll-call. Students speak sequentially, and our AI matches their unique voice signatures.

Voice Attendance
Step 06

Actionable Records

Review and manage historical logs. View confidence scores, download CSV reports, and track long-term attendance trends.

Records Management
— Our Backend —

Advanced Tech Stack

⚡

Streamlit & Flask

Reactive frontend architecture paired with a robust Flask landing layer.

Platform
👁️

Face Registration

Leveraging FaceRecognition and Dlib for high-fidelity facial biometrics.

Vision AI
🎙️

Voice Embeddings

Utilizing Resemblyzer and Librosa for unique student voice signatures.

Audio AI
☁️

Supabase Cloud

Real-time PostgreSQL infrastructure with secure auth and sync.

Storage

How the AI Model Works

🧠
Step 01

Three dlib Models

A HOG face detector finds bounding boxes, a shape predictor maps 68 facial landmarks, and a recognition model converts those landmarks into a 128-dimensional embedding vector — a unique numerical fingerprint for every face.

📝
Step 02

One-Time Registration

When a student registers, their photo is run through the pipeline and the resulting 128-d vector is stored in the database as their face embedding. This only happens once.

⚙️
Step 03

SVM Classifier Training

All stored embeddings are loaded and used to train a Linear SVM — each student ID is a class. Cached per session, re-trained on every new registration. If training fails or only one student exists, the classifier is set to None and the pipeline falls back to nearest-neighbour distance-only matching.

🎯
Step 04

Two Prediction Paths

Depending on the context, one of two functions is called — both funnel into the same _match_encoding() logic:

identify_student() — Selfie Login

Uses upsample=1 since the face is close and large. Falls back to lower upsample values if no face is detected.

→
predict_attendance() — Classroom Photo

Uses upsample=2 to detect small, distant faces across the room.

🔍
Step 05

Matching Logic — _match_encoding()

Every detected face goes through two stages before being confirmed present:

Stage 1 — SVM Nomination

The SVM predicts the most likely student ID via predict(). The old 45% confidence gate was removed — it was blocking valid matches.

→
Stage 2 — Distance Verification

The embedding is compared against all stored embeddings for that student via _best_distance(). If the closest match is ≤ 0.6, the student is marked present.

Key Thresholds

ThresholdOldCurrentNote
SVM Confidence Gate0.45removedWas rejecting valid faces
L2 Distance0.550.6dlib's recommended value
Upsample (selfie)21 + fallbackClose-up faces
Upsample (classroom)22Unchanged

The Student's Journey

Phase 01

Instant Enrollment

Students join courses in seconds using unique QR codes or course links provided by their teachers. No tedious sign-up forms.

Student Enrollment
Phase 02

Biometric Registration

Students register their FaceID and VoiceID once. Our AI securely stores these biometrics for all future class sessions.

Biometric Registration
Phase 03

Personal Dashboard

A unified view for students to track their attendance percentage across all subjects and receive real-time updates.

Student Dashboard

Ready to upgrade your classroom?

Join thousands of educators who have simplified their day with SnapClass. The smartest AI powered attendance system is just one click away.

Start AI Attendance Now