Skip to main content
Back to projects

IronClad

Face identification

AI / ML Interactive
Python vggface2 MTCNN

Top-5 retrieval

Interactive demo real face detection + recognition in-browser

A real face detector (SCRFD) and recognition model (MobileFaceNet) run locally in your browser. Enrol a face, then see whether a second face matches it. Nothing is uploaded — all processing happens on your device.

No camera or photo yet.

No camera? Compare two photos instead:

How it works

IronClad identifies a face by turning it into a compact embedding and searching a gallery of known identities. The pipeline crops the face, embeds it, and returns a short ranked list of candidate identities rather than a single guess.

Input photo blurry, dark, or noisy MTCNN detection locate and crop the face Embedding model vggface2 vs casia-webface Gallery search cosine similarity Top-5 matches ranked by confidence

Design decisions

Building it, step by step

1. Clean and partition the data

Hidden macOS files were removed, leaving 999 usable probe images and 2,261 gallery images across 999 shared identities. Environmental noise was applied only to probe images (blur radius 2/4, brightness 0.7/0.5, resolution 112×112 / 80×80).

Example: the gallery stays clean while the probe is degraded, so any drop in accuracy reflects probe quality rather than gallery drift.

2. Crop faces before embedding

MTCNN finds the largest face and crops it with a small margin. Both probe and gallery images are then embedded and compared with cosine similarity.

3. Rank and return a shortlist

Image-level neighbours are aggregated into distinct identities by best cosine match, and the top five are returned for review.

What I evaluated

MetricResult
Baseline Rank-1vggface2 0.507 vs casia 0.093
Cropped Rank-1vggface2 0.860
Top-5 recall0.922
Gallery target3 images (Rank-1 0.980)
Main riskssevere blur, low brightness

What I learned

Face identification is a pipeline, not a single model. Cropping, model choice, shortlist size, and gallery policy each moved the numbers more than any one switch — and probe image quality is the deployment risk to monitor first.