image-classification Β· wild Real canvas perturbations Β· live webcam WASM q8 Β· 87.34 MB License: Apache-2.0

Lighting / Blur / Contrast Stress-Tester & Webcam Uncertainty Monitor

Dim a portrait, wash out its contrast, blur it, or turn it black-and-white β€” with real CanvasRenderingContext2D.filter pixel operations β€” and measure how far the apparent-age distribution drifts from the clean baseline. Then point your webcam at yourself and watch the entropy spike as you move, turn, or change the lighting.

1 Β· Perturbation stress-tester

Robustness, not identity.

Large drift under ordinary lighting changes is exactly why apparent-age output must never be used for age-gating or decisions about people. The webcam stays on your device and only runs while you keep it on.

Initialising model loader…

filter: none

Clean expected–
Perturbed expected–
Ξ” expected age–
Ξ” entropy–
JS divergence–
Top-1–
Robustness sweep (every preset vs clean baseline)
Preset Filter Top-1 Expected Ξ” age Entropy JS
Run the robustness sweep to fill this table.

2 Β· Live webcam uncertainty monitor

Camera access starts only when you press the button. Frames are classified one at a time (the next frame waits for the previous result), with the current perturbation applied.

Webcam is off.

Frames0
Live top-1–
Live expected–
Mean entropy–
Entropy spikes0
Top-1 switches0

Entropy timeline (last 40 frames; spikes β‰₯ 0.35 bits above the median in red)

See inside the code

Show the code β€” age-core.mjs: buildCanvasFilter() (real brightness/contrast/blur/grayscale)
Show the code β€” age-core.mjs: summarizeTimeline() (entropy spikes + top-1 switches)
Show the code β€” age-core.mjs: distributionShift() (drift vs clean baseline)

References