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, 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.
|
||||
|
||||
Reference in New Issue
Block a user