wiki: H.264 test on park-lab, event-driven refactor decided
- zone-anpr-poc: H.264 instead of MJPEG (load, delay, a car in the zone, staff traffic, bad weather); the relay-less test copy is left running - event-driven-refactor (new): the user's decisions of 2026-11-23, what is not decided, what they touch in today's code; waits for the user's guidelines - passage-confirmation: the 2026-11-19 phase order superseded; where the video work lives - vision-hardening, zone-anpr-poc-review: on-screen label read as a plate (moved by the user), day-time oversized box, still pause carried over - pointers on vision-service, camera-live-view, lane-presence-and-anpr-entry, dingtian-vs-mqtt, entry gates, standing decisions, open questions, overview, index Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RZgP5oZdzvo92Eouc9eRv5
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
type: concept
|
||||
tags: [parking, entry, anti-fraud, safety, devices]
|
||||
sources: []
|
||||
updated: 2026-07-04
|
||||
updated: 2026-11-23
|
||||
status: open
|
||||
---
|
||||
|
||||
@@ -72,6 +72,10 @@ configured, a press is live **only while the entry lane's camera confirms a vehi
|
||||
never traps a car. A camera-less site keeps the radar-only gate; a faulty camera is dropped via the
|
||||
admin [[entry-presence-bypass]] (`bypassPresenceCamera`), same as the operator-issued path.
|
||||
|
||||
> **2026-11-23 (user):** this gate stays as built under the event-driven refactor. When a camera
|
||||
> gives no signal, the admin bypass ([[entry-presence-bypass]]) is the way to unblock the ticket
|
||||
> ([[event-driven-refactor]]).
|
||||
|
||||
### REJECTED: camera-vetoed re-arm (the queue trap)
|
||||
The obvious fix for the stationary-car dropout — *don't re-arm on loop-clear while the camera still
|
||||
sees a car; re-arm when the lane flips free* — was designed and **rejected** (2026-07-04). The
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
type: concept
|
||||
tags: [parking, entry, admin, devices, threat-model, presence]
|
||||
sources: []
|
||||
updated: 2026-07-04
|
||||
updated: 2026-11-23
|
||||
status: settled
|
||||
---
|
||||
|
||||
@@ -15,6 +15,9 @@ radar, a camera that stopped pushing ([[g3h-anpr-push-gotchas|it happens]]) —
|
||||
**legitimate** transient entry until support fixes the hardware. This feature lets the **admin**
|
||||
drop a specific signal as a requirement until then. Built 2026-07-02 (migration `0020`).
|
||||
|
||||
> **2026-11-23 (user):** this bypass is the mechanism that unblocks entry when a camera or a
|
||||
> radar gives no signal, also under the event-driven refactor ([[event-driven-refactor]]).
|
||||
|
||||
## The principle: the admin is NOT the adversary
|
||||
|
||||
The [[threat-model]] adversary is the **booth operator**; the admin is the trusted party. So the
|
||||
|
||||
@@ -2,12 +2,17 @@
|
||||
type: concept
|
||||
tags: [parking, camera, anpr, subscription, lane, vision]
|
||||
sources: []
|
||||
updated: 2026-10-11
|
||||
updated: 2026-11-23
|
||||
status: open
|
||||
---
|
||||
|
||||
# Lane Presence & ANPR Subscriber Entry
|
||||
|
||||
> **2026-11-23:** the bridge described here has the server pull the still and post it to the
|
||||
> vision service. The user decided that the server holds no video or image work and takes a
|
||||
> camera's signal as one way in among several ([[event-driven-refactor]]). Not built; this page
|
||||
> describes what runs today.
|
||||
|
||||
Two related things a camera's vehicle detection feeds, worked out over a long field session
|
||||
(2026-06-22, see [[lpr-camera]] for the camera-side saga + the corrected "it was the undrawn
|
||||
detection area" conclusion):
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
type: concept
|
||||
tags: [parking, booth, entry, threat-model, anpr, presence]
|
||||
sources: []
|
||||
updated: 2026-07-04
|
||||
updated: 2026-11-23
|
||||
status: settled
|
||||
---
|
||||
|
||||
@@ -14,6 +14,10 @@ to mint entries — so it is **flagged, presence-gated, and paired with an exit
|
||||
([[plate-reconciliation]]). Built 2026-07-01. Companion to [[entry-exit-points]] (the entry flow it
|
||||
reuses) and [[capacity-occupancy]].
|
||||
|
||||
> **2026-11-23 (user):** this gate stays as built under the event-driven refactor. When a camera
|
||||
> gives no signal, the admin bypass ([[entry-presence-bypass]]) is the way to unblock the ticket
|
||||
> ([[event-driven-refactor]]).
|
||||
|
||||
## Why give the operator this at all
|
||||
An operator *could* mint tickets to defraud — but a broken entry button otherwise **blocks the whole
|
||||
lot**, which is worse and more common. So the feature exists, and the fraud it enables is defended
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
type: concept
|
||||
tags: [parking, vision, barrier, lane, ledger, safety, design]
|
||||
sources: []
|
||||
updated: 2026-11-22
|
||||
updated: 2026-11-23
|
||||
status: open
|
||||
---
|
||||
|
||||
@@ -110,7 +110,7 @@ Two cameras mounted on **one physical lane that serves both directions** (user,
|
||||
|---|---|---|
|
||||
| Address | `10.0.10.6` | `10.0.10.7` |
|
||||
| Model | DS-2CD1083G2-LIU (8MP, V5.8.4) | DS-2CD1043G2-LIU (4MP, V5.8.10) |
|
||||
| Sub-stream (102) | 1280×720 **MJPEG**, 12.5 fps (was 640×360 H.264, keyframe every 4 s) | 1280×720 **MJPEG**, 20 fps (was 640×360 H.264, keyframe every 2.5 s) |
|
||||
| Sub-stream (102) | 1280×720 **H.264**, 12.5 fps, keyframe every 0.96 s (since 2026-11-23; MJPEG from 2026-11-17 until then) | 1280×720 **H.264**, 20 fps, keyframe every 1 s (since 2026-11-23; MJPEG from 2026-11-17 until then) |
|
||||
| Line crossing / intrusion (`ISAPI/Smart/LineDetection`, `FieldDetection`) | `notSupport` | `notSupport` |
|
||||
| Motion detection | on, target `vehicle`, grid drawn | on, target `vehicle`, grid drawn |
|
||||
| Alarm server (`httpHosts`) | the dev machine `10.0.10.203:3000` (user, 2026-11-19) | the dev machine `10.0.10.203:3000` (user, 2026-11-19) |
|
||||
@@ -203,6 +203,11 @@ signal.*
|
||||
|
||||
### Phase-1 order (user, 2026-11-19)
|
||||
|
||||
> **Superseded (user, 2026-11-23).** The PoC as it ran on 2026-11-22 met the user's requirements
|
||||
> and is the reference for building this into the parking system: the zone flow, the relay rules
|
||||
> and the live close, as decided on 2026-11-22 below. The staged order in this section and the
|
||||
> "Phase-1 shape" after it are kept as history and no longer bind the work.
|
||||
|
||||
The audit record comes first, because it actuates nothing: no relay, no interlock, no safety
|
||||
review.
|
||||
|
||||
@@ -353,6 +358,24 @@ build had to pick a default for each; they are listed on [[zone-anpr-poc]]:
|
||||
the check is not atomic. It does not replace the series interlock, which stays a precondition
|
||||
for a live R2.
|
||||
|
||||
## Where the video work lives (user, 2026-11-23)
|
||||
|
||||
Decided by the user, and now part of a refactor of the whole repository:
|
||||
[[event-driven-refactor]] has the full list, what is not decided, and what it touches in the code.
|
||||
|
||||
- **The server holds no video or image work.** The vision side talks to the cameras, decodes
|
||||
whatever they send, and produces what the rest needs.
|
||||
- **The server is agnostic about the camera side.** A camera's signal is one way in among
|
||||
several; without it an RF card, a barcode or a push-button ticket does the job. The server does
|
||||
nothing special when a camera is blind or dead. For this page that keeps the rule "no signal,
|
||||
no close".
|
||||
- **A bus connects the vision side, the server and the booth screen.** How the booth gets its
|
||||
picture and how the vision side gets the camera logins settle with the user's guidelines.
|
||||
- **Tried the same day:** the PoC decoding H.264 sub-streams costs the same CPU as MJPEG and an
|
||||
eighth of the network ([[zone-anpr-poc]], "H.264 instead of MJPEG").
|
||||
- Today the server still holds the live-view stream, pulls and re-encodes the stills, and reads
|
||||
picture sizes ([[camera-live-view]], `apps/server/src/snapshot.ts`). Nothing has been moved.
|
||||
|
||||
## Open questions
|
||||
|
||||
- **Hardening the vision side** after the field trials: the work list, deferred on 2026-11-22, is
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
type: concept
|
||||
tags: [parking, vision, anpr, passage, night, glare, hardening, poc, park-lab]
|
||||
sources: []
|
||||
updated: 2026-11-22
|
||||
updated: 2026-11-23
|
||||
---
|
||||
|
||||
# Vision hardening — what the zone PoC left open
|
||||
@@ -25,6 +25,8 @@ Evidence for every item is on [[zone-anpr-poc]] (flow, relays, live closes) and
|
||||
- **The user's reading (2026-11-22):** the wet lens is the culprit and the weather cannot be
|
||||
fixed. park-lab is also the worst case there is: one lane for both directions, and a boom that
|
||||
crosses the exit camera's picture.
|
||||
- **Again on 2026-11-23 (user):** bad weather during the staff's morning traffic; the cameras are
|
||||
outdoors and the weather cannot be fixed ([[zone-anpr-poc]], "Staff traffic").
|
||||
|
||||
## The picture itself (camera side)
|
||||
|
||||
@@ -50,6 +52,9 @@ Nothing in the software removes flare from a wet lens. None of these has been tr
|
||||
wide, against 81–99% for the glare boxes, so size alone will not separate them.
|
||||
- **To try:** a visit starts only on a box that has held for a few looks; a box that touches
|
||||
both the left and the right edge of the picture is not a car.
|
||||
- By day too (2026-11-23, 09:01 UTC, exit camera): a box 824 px wide and 703 of 720 px high
|
||||
over the grey mass in front of the lens, with a car's rear at its edge. It touches the left
|
||||
edge only, so the both-edges rule would not catch it.
|
||||
2. **The followed car goes unmatched more often at night.** The detector held its 5 looks a second
|
||||
throughout (`metrics.jsonl`), but in several night visits the car was matched in only 3.1–4.1 of
|
||||
them. Each miss is a look in which the car's side is not known. Not investigated.
|
||||
@@ -97,6 +102,20 @@ Nothing in the software removes flare from a wet lens. None of these has been tr
|
||||
11. **No format rule (user, 2026-11-21).** Items 5–8 are checks on the picture. A rule about what
|
||||
a plate looks like stays out.
|
||||
|
||||
**Added 2026-11-23:** the camera's on-screen label is read as a plate. The entry camera prints
|
||||
"Hyrje" into the picture, bottom right, where a car's bumper stands when it is at the line. The
|
||||
plate reader takes it for a plate (`HUIJE`), in video frames and in stills, and on 2026-11-23 one
|
||||
still was sure enough to vote ([[zone-anpr-poc]], "H.264 instead of MJPEG"). **To try:** take the
|
||||
label and the clock out of the picture in the camera's settings, or keep a plate box that falls on
|
||||
a printed overlay from voting.
|
||||
|
||||
- **Done by the user (2026-11-23):** the labels "Hyrje" and "Dalje" now sit in the top-right
|
||||
corner of both cameras' pictures, in the video and in the hi-res still, away from the zone and
|
||||
from where a car stands. A tall vehicle reached it the same morning: an off-roader's box rose
|
||||
to y = 37 of 720 with the label inside it (08:53 UTC). The label was not read then, nor in any
|
||||
other of the staff's eight visits. That is one vehicle, so the overlay check stays on the
|
||||
list.
|
||||
|
||||
## Flow and the close
|
||||
|
||||
12. **A car the detector loses inside the zone.** The code's default gives `unclear` and no close.
|
||||
@@ -164,10 +183,15 @@ Nothing in the software removes flare from a wet lens. None of these has been tr
|
||||
on park-lab.
|
||||
- **On park-lab:** container `zg2`, page on port 8094, files in `~/zone-anpr-gpu`. **It is stopped
|
||||
since the evening of 2026-11-22** (user: the barrier is operated only with the staff's remote
|
||||
control until the system is ready to control it). `docker start zg2` brings it back with the
|
||||
committed `zone_anpr.py`, `close_live` and `close_on_lost` on, and the relays disarmed. Do not
|
||||
start it during business hours without the user's word. Earlier versions are kept beside it as
|
||||
control until the system is ready to control it). `docker start zg2` brings it back with
|
||||
`close_live` and `close_on_lost` on, and the relays disarmed. Do not start it during business
|
||||
hours without the user's word. Earlier versions are kept beside it as
|
||||
`zone_anpr.py.bak-20261122-*`.
|
||||
- **Since 2026-11-23** the `zone_anpr.py` on park-lab also has the live picture of the H.264
|
||||
test ([[zone-anpr-poc]]); the version before it is `zone_anpr.py.bak-20261123-prelive`. The
|
||||
test runs as container `zg-h264`, which has no relay board configured, on the same port 8094,
|
||||
so `zg2` and `zg-h264` cannot run together. The user left `zg-h264` running on 2026-11-23
|
||||
(harmless: no relay armed or configured).
|
||||
- **Records there:** `out/visits.jsonl`, `out/relays.jsonl`, `out/reads.jsonl`,
|
||||
`out/reads-all.jsonl`, and per visit `out/clips/<start>_<camera>/` with every processed frame,
|
||||
its box, and the kept stills with their reads.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
type: concept
|
||||
tags: [parking, vision, anpr, passage, relay, poc, park-lab, review]
|
||||
sources: []
|
||||
updated: 2026-11-22
|
||||
updated: 2026-11-23
|
||||
---
|
||||
|
||||
# Zone ANPR PoC — code review (2026-11-21)
|
||||
@@ -170,7 +170,7 @@ The PoC was changed three times on 2026-11-22 ([[zone-anpr-poc]], "The 2026-11-2
|
||||
| 7–9 lane lock | open |
|
||||
| 10–12 liveness and timing | open, except that a close needs a frame under 1 s old |
|
||||
| 13 the still client dies for good | fixed: a new client for every still |
|
||||
| 14 the back-off carries over to the next car | open |
|
||||
| 14 the back-off carries over to the next car | open; seen live on 2026-11-23 (an 8 s pause from timeouts twenty minutes earlier) |
|
||||
| 15 stills back to back with no cap | fixed: at most one every 0.5 s, capped while the car stands |
|
||||
| 16 cause of the still hangs | open; still seen, by day and by night |
|
||||
| One frame at the end decides the verdict (found by reading, not replayed then) | seen for real on 2026-11-22 night; fixed: a side counts after two looks |
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
type: concept
|
||||
tags: [parking, vision, anpr, passage, relay, poc, park-lab]
|
||||
sources: []
|
||||
updated: 2026-11-22
|
||||
updated: 2026-11-23
|
||||
---
|
||||
|
||||
# Zone ANPR PoC — field trials on park-lab
|
||||
@@ -20,6 +20,11 @@ deferred to a later session, and the work list is on [[vision-hardening]].
|
||||
off beforehand. The user's rule for now: *the barrier is operated only with the staff's remote
|
||||
control; our system is not ready to control the barrier yet.*
|
||||
|
||||
**Back for one test (user, 2026-11-23):** a copy with **no relay board configured** (container
|
||||
`zg-h264`) runs on H.264 sub-streams, to see what decoding costs. `zg2` stays stopped. See
|
||||
"H.264 instead of MJPEG" below. **Left running (user, 2026-11-23):** in this state it is
|
||||
harmless, no relay is armed or configured. The cameras' sub-streams stay on H.264 with it.
|
||||
|
||||
- **Seeing the car:**
|
||||
- the **low-res MJPEG stream** (1280×720), about 5 frames a second through YOLOX-Tiny on the Intel
|
||||
iGPU;
|
||||
@@ -362,6 +367,179 @@ it's open."*
|
||||
as A → B and drive-outs as "other direction". The exit camera is not used for crossing
|
||||
verdicts. Whether it still opens R1 or reads plates for drive-outs is not yet decided.
|
||||
|
||||
## H.264 instead of MJPEG (2026-11-23)
|
||||
|
||||
**Why (user).** The server should hold no video or image work. MJPEG let it pass frames along
|
||||
undecoded, which locks the system to cameras that offer MJPEG. A camera that streams only H.264
|
||||
or H.265 has to be decoded somewhere, and that place is the vision side. The test: switch the
|
||||
sub-streams to H.264, decode them in the PoC, show a live picture on its page, and watch the
|
||||
booth PC's load.
|
||||
|
||||
**Set-up.**
|
||||
|
||||
- Container `zg-h264` on park-lab: the same image and code, `config-h264test.json`, records in
|
||||
`out-h264test/`, page on port 8094. Its config names **no relay board** and it has no relay
|
||||
password, so its arm button has nothing to send to. Restart policy `no`.
|
||||
- The PoC gained a **live picture** for the page (`/live/<camera>.mjpg`): every decoded frame is
|
||||
re-encoded as a JPEG once, for all viewers, and only while somebody watches. Before, the page
|
||||
fetched a still every 700 ms. The metrics gained the codec, the network intake, the viewers and
|
||||
the time from connecting to the first picture.
|
||||
- Decoding is in software (FFmpeg inside OpenCV 4.13), RTSP over TCP, with FFmpeg's `nobuffer`
|
||||
and `low_delay` set. The detector stays on the iGPU.
|
||||
- **Camera change:** channel 102 on both cameras went from MJPEG to **H.264** (Main profile), with
|
||||
a keyframe about every second (GOP 12 on the entry camera, 20 on the exit camera). Resolution,
|
||||
frame rate and the 1024 kbps VBR cap were left as they were. The settings from before are saved
|
||||
on park-lab as `~/zone-anpr-gpu/h264test/cam6-102-before.xml` and `cam7-102-before.xml`; a PUT
|
||||
of those files puts MJPEG back.
|
||||
|
||||
**Measured** (21 ten-second windows each, empty lane, one viewer on each camera's live picture):
|
||||
|
||||
| | MJPEG | H.264 |
|
||||
|---|---|---|
|
||||
| Process CPU, of 6 cores | 0.40 | 0.41 |
|
||||
| Host busy | 8.0% | 7.8% |
|
||||
| Memory | 309 MB | 372 MB |
|
||||
| Network intake | 15.2 Mbps | 1.85 Mbps |
|
||||
| Frames in and decoded a second (entry + exit) | 12.5 + 20 | 12.5 + 20 |
|
||||
| Live frames a second to the viewer | 12.5 + 20 | 12.5 + 20 |
|
||||
| Detector, ms a look | 21 | 32 |
|
||||
| First picture after connecting (entry, exit), one connect each | 1.8 s, 2.9 s | 3.6 s, 2.6 s |
|
||||
|
||||
- **The codec makes no difference to the CPU.** The network intake falls to an eighth.
|
||||
- The earlier figure of 6–7% CPU was also taken with every MJPEG frame decoded (mode `stream`),
|
||||
not only the frames looked at.
|
||||
- Eight H.264 decode errors were logged in the second the exit stream first connected
|
||||
(06:47:55 UTC), and none in the five minutes after. No stream loss after the switch.
|
||||
- **The user, watching the page during the MJPEG run (2026-11-23):** "7%–8% CPU load. Not
|
||||
bad." The user has not yet commented on the H.264 numbers.
|
||||
|
||||
**Delay from the camera to the live picture** (2026-11-23). Measured as on [[camera-live-view]]:
|
||||
the camera's printed clock against the arrival of the live picture's JPEG, here at a viewer on
|
||||
the booth PC itself, with each camera's clock bracketed over ISAPI to ±6–14 ms. 65–75 second
|
||||
flips per camera; the minute flip agrees, so the figures are not off by whole seconds.
|
||||
|
||||
| | Entry (12.5 fps) | Exit (20 fps) |
|
||||
|---|---|---|
|
||||
| MJPEG straight from the camera (2026-11-17) | 0.09–0.10 s | 0.09–0.10 s |
|
||||
| H.264, decoder on its default threads | 0.51–0.61 s | 0.39–0.43 s |
|
||||
| H.264, **one decode thread** | 0.12–0.24 s | 0.18 s |
|
||||
|
||||
- **Cause of the first figure:** FFmpeg decodes H.264 on several threads by default, and each
|
||||
extra thread holds one more frame back. On the 6-core booth PC that is 5 frames: 0.40 s at
|
||||
12.5 fps, 0.25 s at 20 fps, which is the drop measured. The `low_delay` capture option did
|
||||
not prevent it.
|
||||
- **Fix in the PoC:** config key `decode_threads` (passed to OpenCV as `CAP_PROP_N_THREADS`);
|
||||
the test copy runs with 1.
|
||||
- With one decode thread and nobody watching the process used 0.27 cores and 328 MB, with no
|
||||
decode error and the detector still at 5 looks a second.
|
||||
- What is left, about 0.1 s over MJPEG, covers the camera's H.264 encoder, the decode and the
|
||||
re-encode. A browser elsewhere adds its network and drawing time, which this does not include.
|
||||
|
||||
**The user's readings on the booth PC (2026-11-23, H.264, default decode threads):**
|
||||
|
||||
| | CPU | Download | Upload |
|
||||
|---|---|---|---|
|
||||
| Watching both pictures | 7–8% | 1.3 Mibps | 19.5 Mibps |
|
||||
| Nobody watching | 5–6% | 1.1 Mibps | 400 Kibps |
|
||||
|
||||
Memory is steady either way. The upload is the live picture going to the browser as JPEGs
|
||||
(about 107 KB a frame from the entry camera and 63–67 KB from the exit camera).
|
||||
|
||||
**A car in the zone** (2026-11-23, 07:32–07:33 UTC, AA927AU, H.264 with one decode thread; the
|
||||
barrier was not driven, the relay lines are "would pulse" records). Read from the frames; the
|
||||
user has not yet said what was driven.
|
||||
|
||||
| Start (UTC) | What the frames show | Verdict | Plate |
|
||||
|---|---|---|---|
|
||||
| 07:32:23 | drove up, stood 17 s short of the line, backed out | `abandoned`, would close | `AA927AU` decided after 0.34 s: 2 video frames and 1 still |
|
||||
| 07:32:54 | drove up further, stood 4 s, backed out | `abandoned`, would close | undecided: `AA927AU` 2 votes, `HUIJE` 1 vote |
|
||||
|
||||
- **The flow judged both as the frames show them.** The followed car was matched in 5.0 looks a
|
||||
second in both visits.
|
||||
- **Video frames read the plate as well as before.** With the plate 65–90 px wide, 4 of 4 reads
|
||||
were right and sure, the same as in the MJPEG day trial of 2026-11-22 (4 of 4). The sample is
|
||||
small.
|
||||
- **The camera's on-screen label was read as a plate.** In the second visit the car stood with
|
||||
its bumper under the label "Hyrje" that the camera prints into the picture, and its own plate
|
||||
was edge-on. 21 video frames and 3 stills then read the label (`HUIJE`, `HU1JE`, `HUIJB`), and
|
||||
one still was sure enough (0.986) to vote. This is not an H.264 effect: 30 such reads are in
|
||||
the records of 2026-11-20 to 22, none of them sure enough to vote until today. Now on
|
||||
[[vision-hardening]]. The user moved both labels to the top-right corner the same day.
|
||||
- **Load with the car in the zone:** 0.36–0.42 cores while it stood, and 0.84 cores (15% of the
|
||||
host) for the ten seconds with 33 plate reads; memory rose from 329 to 512 MB and fell back to
|
||||
441 MB. The detector kept 5 looks a second at 25–31 ms.
|
||||
- **Two stills timed out** in the second visit (2 s and 4 s pauses), as on the earlier days. No
|
||||
decode error and no stream loss.
|
||||
|
||||
**Staff traffic** (2026-11-23, 07:52–09:11 UTC, the same test copy). The user: the staff drove,
|
||||
not the user. Nobody said what each vehicle did, so the column "What the frames show" is a
|
||||
reading of the recorded frames, and these visits are not part of the scored set in
|
||||
`recordings/`. The barrier was not driven: all 13 rows in `relays.jsonl` have `sent: false`.
|
||||
|
||||
| Start (UTC) | Camera | What the frames show | Seen | Verdict | Plate |
|
||||
|---|---|---|---|---|---|
|
||||
| 07:52:53 | entry | a dark car drives in without stopping | 0.6 s | `passed` | none: 1 video read at 52 px (weak), the one still timed out |
|
||||
| 08:00:43 | exit | the same model of car, front to the camera, behind a blur that covers most of the picture | 0.4 s | `abandoned`, lost | undecided: `AB242TD`, 1 vote from a still (0.96); 3 video reads at 49–55 px |
|
||||
| 08:28:36 | exit | a dark SUV moves out of sight behind a grey mass that fills the left half of the picture | 1.2 s | `abandoned`, lost | none: 3 stills, no plate found |
|
||||
| 08:33:29 | entry | a black SUV stands 20 s short of the line, then five people push it through, rear first | 26.8 s | `passed` | none: 11 stills, no plate found; 4 stills timed out |
|
||||
| 08:53:16 | entry | a white off-roader drives in without stopping | 2.2 s | `passed` | none: 2 video reads at 41–44 px (weak), 1 still read weak (0.61) with the plate at the crop's edge, 1 still timed out |
|
||||
| 09:01:24 | exit | the white off-roader's rear at the edge of the grey mass | 0.2 s | `abandoned` | none |
|
||||
| 09:09:44 | exit | a dark hatchback stands 62 s in the zone, then moves back, away from the camera | 63.3 s | `abandoned` | none: 91 video tries, 5 weak reads; 2 weak still reads |
|
||||
| 09:11:04 | exit | not looked at | 0.6 s | `abandoned`, lost | none |
|
||||
|
||||
- **Bad weather (user, 2026-11-23).** The cameras are outdoors and the weather cannot be
|
||||
fixed. The lane is wet in every clip of that morning. The soft plates and the blur in the exit
|
||||
camera's picture have to be read with that in mind; how much of them is the weather was not
|
||||
separated from the rest.
|
||||
- **Entry camera: 3 of 3 `passed`,** which is what the frames show, and no close would have gone
|
||||
out. The pushed car was followed for 27 s at 5 looks a second with five people around it.
|
||||
- **Exit camera: not scored.** It is out for verdicts (see "The exit camera is
|
||||
out"). Each of its five visits would have pulsed the open relay.
|
||||
- **No plate was decided in eight visits. The records do not show that H.264 is the cause, and
|
||||
they do not rule it out:**
|
||||
- in the two drive-ins the plate was 41–52 px wide in the video frames at the moment the visit
|
||||
started, under the 64 px gate, so those reads could not vote on MJPEG either (item 4 on
|
||||
[[vision-hardening]]: the plate has to be read before the visit starts);
|
||||
- on the MJPEG days (2026-11-21 and 22) the entry camera's video reads under 65 px were sure
|
||||
(≥ 0.90) in 10 of 120; today in 3 of 17. At 65–90 px: 6 of 36 on MJPEG, 4 of 4 today, all
|
||||
four from the user's own drive;
|
||||
- the exit camera's five video reads at 82–88 px (09:10:46–47) scored 0.11–0.21. In those
|
||||
frames the plate is too soft to read by eye. On the MJPEG days the exit camera's reads at
|
||||
that width were sure in 2 of 7.
|
||||
- The sample is too thin for a comparison. A drive with a known plate is still needed.
|
||||
- **The blur and the grey mass in the exit camera's picture are not decoding faults.** The blur
|
||||
of 08:00 is in the hi-res still as well, which does not come from the H.264 stream. What they
|
||||
are was not established from the frames ([[vision-hardening]] records that the boom crosses
|
||||
this camera's picture).
|
||||
- **A vehicle's box reached the moved label, and it was not read.** The off-roader's box rose to
|
||||
y = 37 of 720 at the right edge (08:53:19), with the label "Hyrje" inside it. No read of the
|
||||
label is in the records of any of the eight visits.
|
||||
- **Still timeouts on the entry camera:** 8 in 28 tries today (the user's drive included),
|
||||
against 9 in 67 on 2026-11-22 by day. Cause not known. One on the exit camera.
|
||||
- **The pause carried over to the next car** (finding 14 on [[zone-anpr-poc-review]], seen
|
||||
live): the fail count is reset only by a still that succeeds, so the timeout at 07:52:54
|
||||
drew an 8 s pause after the two of 07:32–07:33, twenty minutes earlier.
|
||||
- **The stream held:** 12.5 and 20 frames a second in every ten-second window from 07:34 to
|
||||
09:14 UTC, no decode error, no reconnect.
|
||||
- **Load:** 0.27 cores with an empty lane; 0.77–0.90 cores (13–15% of the host) in the windows
|
||||
with a standing vehicle being read. Memory went from 329 to 497 MB over the morning in steps,
|
||||
one at each visit. The MJPEG run of 2026-11-22 did the same (296 MB after a start, 448–535 MB
|
||||
after visits, peaks of 0.9–1.05 cores), so neither is an H.264 effect.
|
||||
|
||||
**Not measured.**
|
||||
|
||||
- Plate reading from H.264 frames at night, and by day with a known plate on a car that drives
|
||||
through (the staff's drive-ins gave no usable comparison). The user (2026-11-23): this will be
|
||||
handled as work of its own; it does not hold up moving the video work to the vision side
|
||||
([[event-driven-refactor]]).
|
||||
- Why the detector's time rose from 21 to about 30 ms a look. It still made its 5 looks a second
|
||||
on both cameras in every run.
|
||||
|
||||
**Side effect, as long as 102 stays on H.264.** The parking server's booth camera tiles
|
||||
([[camera-live-view]]) take MJPEG only (`packages/devices/src/drivers/rtsp-mjpeg.ts` refuses any
|
||||
other codec), so they show no live video for these two cameras, on park-lab and on the dev
|
||||
machine.
|
||||
|
||||
## Still open
|
||||
|
||||
Deferred by the user on 2026-11-22. The work list, with the evidence for each item, is on
|
||||
|
||||
Reference in New Issue
Block a user