At a glance
| Model | opencv/face_image_quality_assessment_ediffiqa — eDifFIQA(T), OpenCV Zoo |
|---|---|
| Task | face-image-quality (biometric capture-quality scoring) — run via raw ONNX Runtime Web (see note below) |
| Runtime | onnxruntime-web 1.21 (transformers.js has no face-IQA class / no such task) |
| Input | input [1, 3, 112, 112] float32 in 0–1 — an aligned face crop (plain RGB) |
| Output | output [1, 1] float32 — a scalar quality score (higher = a better face for recognition) |
| Quantization | fp32 ONNX — runs on the plain WASM execution provider, no WebGPU needed |
| Backend | WebAssembly (single-threaded on GitHub Pages) — well under a second per face |
| Download | ~7 MB, cached after first load (auto-inits on return) |
| License | Apache-2.0 (OpenCV Zoo) |
| Web APIs | WebAssembly, Web Workers, OffscreenCanvas, ImageBitmap — all Baseline widely available |
Run it
Licensed portraits, scored + ranked by the model (higher = more usable capture).
Degrade a face → watch the score fall
Blur or darken a real capture and re-score it — the honesty check that the model tracks quality, not identity.
Use-case ladder
Basics · Degradation Curve Lab
Score portraits or uploads, inspect the [1,3,112,112] RGB tensor readout, and run live monotonic blur / dim-lighting / noise curves.
Practical · Burst "Best Shot" & KYC Gate
Rank a burst roll + multi-file uploads, crown the #1 Best Shot, tune a live Pass/Reject quality threshold, and export CSV/JSON audit logs.
Wild · Live Capture-Stress & Framing Lab
Drag the framing box and push blur, motion, exposure, contrast, and noise sliders live to find the exact breaking point of biometric usability.
Multi-model · Two-Stage Biometric Gatekeeper
Chain MediaPipe FaceDetector (0.23 MB) → eDifFIQA (7.3 MB) to locate every face in a scene and compare full-frame vs tightly cropped quality scores.
Why raw ONNX Runtime Web?
Transformers.js has no face-IQA model class or task, so we run eDifFIQA's ONNX graph directly with
onnxruntime-web: crop the face to 112×112, pack it as [1,3,112,112] float32 in 0–1, and
read the scalar quality output. It doesn't identify anyone — it only judges the capture — and it all
happens on your device.