How Street & Dashcam Privacy Blur Works
Every vehicle sweep, plate OCR pass, face detection pass, pixel redaction filter, and zero-EXIF re-encode
runs off the main thread in four dedicated module Web Workers with zero server traffic.
1. RF-DETR Nano Vehicle & Street Object Pass
onnx-community/rfdetr_nano-ONNX (Apache-2.0, model_type: rf_detr, isolated
Transformers.js 4.3.2 worker pin in rfdetr-worker.js) locates cars, trucks, buses, bicycles,
traffic lights, stop signs, and pedestrians at 384×384. On WebGPU it deliberately runs q4
(25.0 MB, FP32 activations, ~60–160 ms) rather than q4f16/fp16, because Stage 0
live Chrome diagnostics proved ORT WebGPU FP16 collapses RF-DETR logits to a constant; CPU browsers fall
back cleanly to wasm int8 (28.8 MB, ~770 ms).
2. PP-OCRv6 Small License Plate & Sign OCR
PaddlePaddle/PP-OCRv6_small_det_onnx (9.88 MB DBNet, BGR ImageNet normalization,
thresh 0.2, box_thresh 0.45, unclip_ratio 1.4) finds rotated text
quads and feeds deskewed 48px crops into PP-OCRv6_small_rec_onnx (21.16 MB, 18,708-character
multilingual CTC dictionary, 18,710 vocab dims) via raw onnxruntime-web 1.21.0 CPU WASM.
Spatial fusion tags text inside RF-DETR vehicle boxes or alphanumeric plate formats as License Plates.
3. YuNet Bystander Faces & Zero-EXIF Re-Encode
Stage 3 reuses built ../../models/yunet-face-detection/worker.js (0.23 MB MIT, 640×640 BGR
0..255) to mask bystander faces automatically (~20–35 ms). redactor-worker.js applies
transferable Mosaic Pixelation, 2-pass separable Gaussian Blur, or Solid Black Bars off-thread, and
exports fresh Canvas blobs with all camera EXIF/GPS metadata stripped plus an OWASP-safe audit manifest.