Files
julian ce10c741fc poc(zone-anpr): passage-confirmation prototype run on park-lab
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
2026-11-22 18:24:48 +01:00

539 lines
11 KiB
JSON

{
"setups": {
"2026-11-21": {
"zone": [
[
0.6844,
0.7045
],
[
0.1531,
0.873
],
[
0.1708,
0.9952
],
[
0.9396,
0.9896
],
[
0.9521,
0.7508
]
],
"line": {
"p1": {
"x": 0.8538,
"y": 1.0
},
"p2": {
"x": 0.8977,
"y": 0.8064
},
"direction": "a-to-b"
}
},
"2026-11-22 until 10:36": {
"zone": [
[
0.6844,
0.7045
],
[
0.1531,
0.873
],
[
0.1708,
0.9952
],
[
0.9396,
0.9896
],
[
0.9521,
0.7508
]
],
"line": {
"p1": {
"x": 0.8497,
"y": 1.0
},
"p2": {
"x": 0.91,
"y": 0.7505
},
"direction": "a-to-b"
}
},
"2026-11-22 from 10:37": {
"zone": [
[
0.6211,
0.7058
],
[
0.0902,
0.9164
],
[
0.0989,
0.9928
],
[
0.9877,
0.9953
],
[
0.9723,
0.7517
]
],
"line": {
"p1": {
"x": 0.8805,
"y": 0.998
},
"p2": {
"x": 0.887,
"y": 0.743
},
"direction": "a-to-b"
}
}
},
"recordings": [
{
"file": "20261121T163416Z.jsonl",
"setup": "2026-11-21",
"verdict": "abandoned",
"last_crossing": "b-to-a",
"end": "left_zone",
"close": true
},
{
"file": "20261121T163512Z.jsonl",
"setup": "2026-11-21",
"truth": "abandoned",
"note": "the driver confirmed it live (night drive, 2026-11-21)",
"verdict": "abandoned",
"last_crossing": null,
"end": "lost",
"close": true
},
{
"file": "20261121T163604Z.jsonl",
"setup": "2026-11-21",
"verdict": "passed",
"last_crossing": "a-to-b",
"end": "left_view",
"close": false
},
{
"file": "20261121T163641Z.jsonl",
"setup": "2026-11-21",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_view",
"close": true
},
{
"file": "20261121T163700Z.jsonl",
"setup": "2026-11-21",
"truth": "abandoned",
"note": "the driver confirmed it live (night drive, 2026-11-21)",
"verdict": "abandoned",
"last_crossing": null,
"end": "lost",
"close": true
},
{
"file": "20261121T165932Z.jsonl",
"setup": "2026-11-21",
"verdict": "passed",
"last_crossing": "a-to-b",
"end": "left_view",
"close": false
},
{
"file": "20261121T170059Z.jsonl",
"setup": "2026-11-21",
"verdict": "abandoned",
"last_crossing": "b-to-a",
"end": "left_zone",
"close": true
},
{
"file": "20261121T170120Z.jsonl",
"setup": "2026-11-21",
"verdict": "passed",
"last_crossing": "a-to-b",
"end": "left_view",
"close": false
},
{
"file": "20261121T170241Z.jsonl",
"setup": "2026-11-21",
"verdict": "abandoned",
"last_crossing": null,
"end": "lost",
"close": true
},
{
"file": "20261121T170310Z.jsonl",
"setup": "2026-11-21",
"verdict": "abandoned",
"last_crossing": null,
"end": "lost",
"close": true
},
{
"file": "20261121T170431Z.jsonl",
"setup": "2026-11-21",
"verdict": "abandoned",
"last_crossing": null,
"end": "lost",
"close": true
},
{
"file": "20261121T170528Z.jsonl",
"setup": "2026-11-21",
"verdict": "abandoned",
"last_crossing": null,
"end": "lost",
"close": true
},
{
"file": "20261121T172755Z.jsonl",
"setup": "2026-11-21",
"truth": "passed",
"note": "the driver confirmed it live (night drive, 2026-11-21)",
"verdict": "passed",
"last_crossing": "a-to-b",
"end": "left_view",
"close": false
},
{
"file": "20261121T173350Z.jsonl",
"setup": "2026-11-21",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261121T173638Z.jsonl",
"setup": "2026-11-21",
"truth": "abandoned",
"note": "the driver confirmed it live (night drive, 2026-11-21)",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261121T175158Z.jsonl",
"setup": "2026-11-21",
"truth": "passed",
"note": "the driver confirmed it live (night drive, 2026-11-21)",
"verdict": "passed",
"last_crossing": "a-to-b",
"end": "left_view",
"close": false
},
{
"file": "20261121T175429Z.jsonl",
"setup": "2026-11-21",
"truth": "out",
"note": "the driver confirmed it live (night drive, 2026-11-21)",
"verdict": "abandoned",
"last_crossing": "b-to-a",
"end": "left_zone",
"close": true
},
{
"file": "20261121T175508Z.jsonl",
"setup": "2026-11-21",
"truth": "abandoned",
"note": "the driver confirmed it live (night drive, 2026-11-21)",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261121T175621Z.jsonl",
"setup": "2026-11-21",
"truth": "abandoned",
"note": "the driver confirmed it live (night drive, 2026-11-21)",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261121T175806Z.jsonl",
"setup": "2026-11-21",
"verdict": "abandoned",
"last_crossing": null,
"end": "lost",
"close": true
},
{
"file": "20261121T175842Z.jsonl",
"setup": "2026-11-21",
"truth": "passed",
"note": "the driver confirmed it live (night drive, 2026-11-21)",
"verdict": "passed",
"last_crossing": "a-to-b",
"end": "left_view",
"close": false
},
{
"file": "20261122T100245Z.jsonl",
"setup": "2026-11-22 until 10:36",
"truth": "passed",
"note": "the driver said so (2026-11-22)",
"verdict": "passed",
"last_crossing": "a-to-b",
"end": "left_view",
"close": false
},
{
"file": "20261122T100342Z.jsonl",
"setup": "2026-11-22 until 10:36",
"truth": "abandoned",
"note": "the driver said so (2026-11-22)",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261122T100359Z.jsonl",
"setup": "2026-11-22 until 10:36",
"truth": "abandoned",
"note": "the driver said so (2026-11-22)",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261122T100957Z.jsonl",
"setup": "2026-11-22 until 10:36",
"truth": "passed",
"note": "the driver said so (2026-11-22)",
"verdict": "passed",
"last_crossing": "a-to-b",
"end": "left_view",
"close": false
},
{
"file": "20261122T101049Z.jsonl",
"setup": "2026-11-22 until 10:36",
"truth": "abandoned",
"note": "the driver said so (2026-11-22)",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261122T101807Z.jsonl",
"setup": "2026-11-22 until 10:36",
"truth": "abandoned",
"note": "the driver said so (2026-11-22). The zone then ended short of the picture's edge, and the car waiting at the boom read as past the line",
"known_miss": true,
"verdict": "passed",
"last_crossing": "a-to-b",
"end": "left_zone",
"close": false
},
{
"file": "20261122T112533Z.jsonl",
"setup": "2026-11-22 from 10:37",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261122T112710Z.jsonl",
"setup": "2026-11-22 from 10:37",
"truth": "passed",
"note": "the driver said so (2026-11-22)",
"verdict": "passed",
"last_crossing": "a-to-b",
"end": "left_view",
"close": false
},
{
"file": "20261122T112812Z.jsonl",
"setup": "2026-11-22 from 10:37",
"truth": "abandoned",
"note": "the driver said so (2026-11-22)",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261122T112824Z.jsonl",
"setup": "2026-11-22 from 10:37",
"truth": "abandoned",
"note": "the driver said so (2026-11-22)",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261122T112845Z.jsonl",
"setup": "2026-11-22 from 10:37",
"truth": "abandoned",
"note": "the driver said so (2026-11-22)",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261122T112900Z.jsonl",
"setup": "2026-11-22 from 10:37",
"truth": "abandoned",
"note": "the driver said so (2026-11-22)",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261122T162530Z.jsonl",
"setup": "2026-11-22 from 10:37",
"verdict": "abandoned",
"last_crossing": "b-to-a",
"end": "left_view",
"close": true
},
{
"file": "20261122T162550Z.jsonl",
"setup": "2026-11-22 from 10:37",
"verdict": "abandoned",
"last_crossing": "b-to-a",
"end": "lost",
"close": true
},
{
"file": "20261122T162700Z.jsonl",
"setup": "2026-11-22 from 10:37",
"truth": "passed",
"note": "the driver said so (2026-11-22). Night, wet lens: judged abandoned until the two-looks rule",
"verdict": "passed",
"last_crossing": "a-to-b",
"end": "left_view",
"close": false
},
{
"file": "20261122T162812Z.jsonl",
"setup": "2026-11-22 from 10:37",
"verdict": "abandoned",
"last_crossing": null,
"end": "lost",
"close": true
},
{
"file": "20261122T162827Z.jsonl",
"setup": "2026-11-22 from 10:37",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_view",
"close": true
},
{
"file": "20261122T162847Z.jsonl",
"setup": "2026-11-22 from 10:37",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261122T170049Z.jsonl",
"setup": "2026-11-22 from 10:37",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261122T170101Z.jsonl",
"setup": "2026-11-22 from 10:37",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261122T170118Z.jsonl",
"setup": "2026-11-22 from 10:37",
"verdict": "abandoned",
"last_crossing": "b-to-a",
"end": "left_zone",
"close": true
},
{
"file": "20261122T170132Z.jsonl",
"setup": "2026-11-22 from 10:37",
"verdict": "passed",
"last_crossing": "a-to-b",
"end": "left_view",
"close": false
},
{
"file": "20261122T170206Z.jsonl",
"setup": "2026-11-22 from 10:37",
"verdict": "abandoned",
"last_crossing": "b-to-a",
"end": "left_zone",
"close": true
},
{
"file": "20261122T170226Z.jsonl",
"setup": "2026-11-22 from 10:37",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_zone",
"close": true
},
{
"file": "20261122T170243Z.jsonl",
"setup": "2026-11-22 from 10:37",
"verdict": "passed",
"last_crossing": "a-to-b",
"end": "left_view",
"close": false
},
{
"file": "20261122T170335Z.jsonl",
"setup": "2026-11-22 from 10:37",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_view",
"close": true
},
{
"file": "20261122T170350Z.jsonl",
"setup": "2026-11-22 from 10:37",
"verdict": "abandoned",
"last_crossing": null,
"end": "left_view",
"close": true
}
]
}