feat(review): sample every detected car, not only ticketed entries
Build & push images / images (push) Successful in 5m20s

The entry stream for the reviewer was fed from the session-tied read only (ticket
printed / exit signed). park-2 ran an afternoon with its barriers up: hundreds of
camera vehicle pushes, zero tickets, zero samples.

- anpr-entry: keep the best-framed vehicle of each poll loop (highest body-type
  confidence with a box), store that frame as a snapshot (identity pass:<id>, no
  session) and emit a vehicle read with the camera id — plate or no plate. One
  sample per detection, fire-and-forget, never on the ANPR path.
- snapshot.ts: normalizedBoxes() shared by the session-tied read and the bridge;
  vehicle reads now carry deviceId.
- review-outbox: sampleEntry(deviceId) dedups per camera for 30 s so the pass
  sample and a ticket entry's read (same car, seconds apart) go once.
- wiki: outbox page (entry stream, troubleshooting checklist for 'nothing arrives':
  the month-long silence was a missing Netbird policy, not code), park-2 camera
  port-forward procedure (site-device-installation §7), log.
This commit is contained in:
2026-10-08 19:30:03 +02:00
parent 354de04a3d
commit 30a1180108
10 changed files with 288 additions and 28 deletions
+3
View File
@@ -114,6 +114,9 @@ export interface PlateRecognizedEvent {
export interface VehicleReadEvent {
readonly identity: string;
readonly direction: "entry" | "exit";
/** The camera that took the frame, so a listener can tell "same car, two reads seconds
* apart" (the bridge's pass sample + the ticket entry's read) from two cars. */
readonly deviceId?: string;
readonly read: VehicleRead;
}