use case · multi-model · MediaPipe FaceDetector (0.23 MB) → eDifFIQA(T) (7.3 MB) · ~7.53 MB total

Two-Stage Biometric Gatekeeper: Locate Faces → Score Each Capture

eDifFIQA(T) expects a tight 112×112 face crop — feed it a wide scene or a group photo uncropped and the score collapses or mixes faces together. Here two tiny independent Web Workers chain locally (~7.5 MB combined): Stage 1 (MediaPipe FaceDetector) reuses models/face-detector/worker.js to box every face and its 6 keypoints (zero weight duplication), then Stage 2 (eDifFIQA) crops and scores each face individually — comparing full-frame uncropped vs tightly face-cropped biometric quality live.

1 · Initialise both on-device models (isolated Web Workers)

Stage 1 · MediaPipe FaceDetector (0.23 MB BlazeFace)

BlazeFace short-range detector (mediapipe/face-detector, Apache-2.0) reusing models/face-detector/worker.js to locate face boxes & 6 keypoints.

Waiting for Stage 1 initialisation.

Stage 2 · eDifFIQA(T) Face Quality (7.3 MB WASM fp32)

Biometric FIQA scorer (opencv/face_image_quality_assessment_ediffiqa, Apache-2.0) scoring each detected 112×112 face crop plus the full-frame baseline.

Waiting for Stage 2 initialisation.

Prepare both models above (or initialise either stage individually) to run the two-stage biometric gatekeeper.

2 · Choose a scene & run the 2-stage biometric pipeline

Face Pass Gate Face Reject / Borderline Stage 1 Box (awaiting Stage 2)

Pipeline Controls & Stage Telemetry

0.45
20%
0.30
Stage 1 · BlazeFacewaiting
Stage 2 · eDifFIQAwaiting
Faces Detected–
Full-Frame Score–
Best Face Crop–
Gate Pass / Reject–
Run the 2-stage biometric gatekeeper above to detect faces with MediaPipe FaceDetector and compare uncropped full-frame vs tightly face-cropped eDifFIQA scores.

3 · Full-Frame Uncropped vs Tightly Face-Cropped Breakdown

No Stage 2 quality scores yet — run the 2-stage pipeline above.

Comparison of uncropped full-frame eDifFIQA score vs Stage 1 detected face crops
Subject Detector Conf & Crop eDifFIQA Score Δ vs Full Frame Quality Tier KYC Gate Stage 2
Run the 2-stage pipeline to compare full-frame vs face-cropped scores.