- /live/<camera>.mjpg: the newest decoded frame with the vehicle boxes,
re-encoded once for all viewers; idle while nobody watches
- the page shows that stream instead of polling a still every 700 ms
- metrics: stream codec, seconds to the first picture, viewers, live
frames a second, network in
- config: decode_threads (CAP_PROP_N_THREADS; 1 removes the frames the
H.264 decoder holds back per extra thread), live_quality
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RZgP5oZdzvo92Eouc9eRv5
A standalone prototype of passage confirmation, tried on park-lab against the
real lane, relays and barrier (wiki: concepts/zone-anpr-poc.md).
- zone_anpr.py: vehicle detection on the camera stream, a drawn zone and
crossing line, and the zone flow: nothing is decided while the zone is busy;
when it is free the last crossing decides (A -> B passed, otherwise
abandoned -> close relay). Relays follow read-then-fire with an online probe
and a check before every datagram; disarmed by default. Plates are read from
hi-res stills and stream frames into one consensus.
- test_flow.py: 65 offline checks of the flow, the relay rules against a mock
board, and the plate reads. No camera, model or relay needed.
- recordings/ + replay_recordings.py: the followed car's boxes for 48 real
entry visits of 2026-11-21/22, replayed through the judging code.
- trial_report.py: per-visit report of a drive, run on park-lab.
The detector model, local config and outputs are not committed (.gitignore).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RZgP5oZdzvo92Eouc9eRv5