diff --git a/wiki/concepts/passage-confirmation.md b/wiki/concepts/passage-confirmation.md index 5e16f2b..7c622d3 100644 --- a/wiki/concepts/passage-confirmation.md +++ b/wiki/concepts/passage-confirmation.md @@ -2,7 +2,7 @@ type: concept tags: [parking, vision, barrier, lane, ledger, safety, design] sources: [] -updated: 2026-11-15 +updated: 2026-11-17 status: open --- @@ -108,7 +108,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) | 640×360 **MJPEG**, 12.5 fps (was H.264, keyframe every 4 s) | 640×360 **MJPEG**, 20 fps (was H.264, keyframe every 2.5 s) | +| 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) | | Line crossing / intrusion (`ISAPI/Smart/LineDetection`, `FieldDetection`) | `notSupport` | `notSupport` | | Motion detection | on, target `vehicle`, grid drawn | on, target `vehicle`, grid drawn | | Alarm server (`httpHosts`) | not set (`0.0.0.0`) | not set (`0.0.0.0`) | @@ -121,9 +121,9 @@ Read from the cameras over ISAPI the same day; bench snapshot results are on [[l > table on [[lpr-camera]], so the two units most likely traded addresses between the bench and the > park-lab mount. Directions hold (the OSD reads "Hyrje" on `.6`, "Dalje" on `.7`); the table above > shows the current state. The same day both sub-streams were switched to **MJPEG** for the booth -> live view ([[camera-live-view]]): every frame is now a keyframe, so item 1's "≤ 1 s I-frame" +> live view ([[camera-live-view]]), then raised to 1280×720: every frame is now a keyframe, so item 1's "≤ 1 s I-frame" > concern no longer applies to these units; the watcher would decode MJPEG (OpenCV can) at -> ~300 KB/s per camera. +> ~1 MB/s per camera. - The 8MP model has no line crossing either, so the constraint above holds for both: the booth PC does the tracking. diff --git a/wiki/decisions/camera-live-view.md b/wiki/decisions/camera-live-view.md index c6984be..ad0410a 100644 --- a/wiki/decisions/camera-live-view.md +++ b/wiki/decisions/camera-live-view.md @@ -119,7 +119,7 @@ while live, ~300 KB/s at 640×360). Dahua cameras have no live view yet (tile sh - [[passage-confirmation]] planned to decode the **H.264** sub-stream. On a camera set up for live view that stream is now MJPEG: OpenCV decodes it too, every frame is a keyframe (the "≤ 1 s - I-frame" requirement disappears), at ~5–10× the bandwidth (~300 KB/s per camera on the device + I-frame" requirement disappears), at ~5–10× the bandwidth (~1 MB/s per camera at 1280×720 on the device VLAN). The two consumers should share one RTSP session per camera when that is built. - **Unverified, probably broken today:** the existing snapshot thumbnails (`SnapshotStrip`, `WashDesk`) use `` — a relative, cookie-authed diff --git a/wiki/entities/lpr-camera.md b/wiki/entities/lpr-camera.md index 49fb79e..29a9a19 100644 --- a/wiki/entities/lpr-camera.md +++ b/wiki/entities/lpr-camera.md @@ -2,7 +2,7 @@ type: entity tags: [parking, hardware, readers, offline-first] sources: [parking-system-architecture, DS-2CD1047G3H-LIU] -updated: 2026-11-15 +updated: 2026-11-17 --- # LPR Camera @@ -237,7 +237,7 @@ replacement for the `G3H` above. Credentials are in the device registry, not her > As mounted at park-lab (read 2026-11-17) the two units sit at the **opposite** addresses to this > bench table: `.6` = the 8MP 1083G2 (entry), `.7` = the 4MP 1043G2 (exit). See -> [[passage-confirmation]] "park-lab rig". Both now run the sub-stream as MJPEG ([[camera-live-view]]). +> [[passage-confirmation]] "park-lab rig". Both now run the sub-stream as 1280×720 MJPEG ([[camera-live-view]]); the 640×360 above is the bench setting. - **The 8MP `DS-2CD1083G2-LIU` does not have the `G3H` bug.** Main-stream ISAPI snapshot returns a full-resolution JPEG every time when pulled one at a time. The 4MP `1043G2` confirms the diff --git a/wiki/index.md b/wiki/index.md index 1e7dd93..d253c0e 100644 --- a/wiki/index.md +++ b/wiki/index.md @@ -147,7 +147,7 @@ Counts: 4 sources · 19 entities · 47 concepts · 9 decision records. - [[device-discovery-roadmap]] — memo (open): how each known device class gets a wizard Scan — SADP + ONVIF for cameras (verified on the lab VLAN), 9100 sweep + fingerprint for printers, Dingtian relay multicast search, Dahua 37810; the reusable method and rules from the DT-008 work. - [[forgiven-exit]] — decision + as-built (2026-10-08): owner opens the EXIT barrier with no payment — a signed zero-amount payment carrying the forgone fee as its own Z-report line (never in cash/card), exit only, admin permission + open shift, reason optional, prints nothing. - [[vision-service-packaging]] — the vision service lives in this monorepo (apps/vision/), separate process, wired into Turbo via a package.json shim; uv-managed Python. -- [[camera-live-view]] — BUILT 2026-11-17: booth camera tiles from the device footer — latest snapshot at rest, live video while that camera sees a vehicle; sub-stream MJPEG over RTSP, reassembled in-process (RFC 2435), one shared session per camera, latest-frame WS delivery; open tiles a user preference. Measured: live in ~150 ms, no extra ANPR 503s. +- [[camera-live-view]] — BUILT 2026-11-17: booth camera tiles from the device footer — latest snapshot at rest, live video while that camera sees a vehicle; sub-stream MJPEG over RTSP, reassembled in-process (RFC 2435), one shared session per camera, latest-frame WS delivery; open tiles a user preference; large view with Live/Snapshot; 1280×720, no fps cap. Measured: ~0.1 s delay on the LAN, no extra ANPR 503s. - [[event-streams-split]] — split the signed business ledger (ledger_events) from unsigned device telemetry (device_events). - [[desktop-shell-tauri]] — ✅ Tauri v2 chosen over Electron for the desktop kiosk shell; thin wrapper, server keeps all logic. Best case Ubuntu 26.04 LTS (resolves WebKitGTK); worst case Windows+WSL → kiosk browser, no native shell. Auto-updater mirrors signed releases to public `mca/public_releases` (source repo is private — field appliances have no Gitea creds). - [[party-ledger]] — 🟡 DESIGN (2026-09-08, not built): counterparty sub-ledger for who-owes-whom across modules — parties + signed `charge` / settlement / `write_off` events, balance derived never stored, aging + statements + CSV; lands postpaid subscriptions, hotel guest-nights, fleet washes on account, supplier/utility bills. Sub-ledger only: no bookkeeping, statements are not fiscal invoices, parties per appliance. diff --git a/wiki/log.md b/wiki/log.md index 231be7b..890898f 100644 --- a/wiki/log.md +++ b/wiki/log.md @@ -3707,3 +3707,18 @@ Found: the cameras' addresses disagree with the 2026-11-15 record — `.6` now a [[passage-confirmation]] and [[lpr-camera]]. Flagged: existing snapshot `` thumbnails probably do not load in the desktop shell. Filed [[camera-live-view]]; updated [[site-device-installation]] §3 (MJPEG step), [[lane-presence-and-anpr-entry]] (rejection scope). + +## [2026-11-17] query | Booth camera tiles — large view, 1280×720, delay measured, fps cap removed + +Follow-up rounds on [[camera-live-view]]. Large view: pulsing green LIVE badge; a click on the tile +opens a large view **in the tile's state** (live tile → Live on the same socket, idle → Snapshot) +with a Live/Snapshot switch that streams on demand; on close a user-started stream stops and a +camera-started one carries on. Main stream in the large view ruled out on this transport (RTP/JPEG +carries width/height as one byte × 8 — ceiling 2040×2040; 101 is 4MP/8MP H.264). With the user's +approval both cameras' channel 102 raised to **1280×720 MJPEG** (~1 MB/s per camera while live; +101 stills unaffected apart from `.6` 0.16 → 0.23 s per still). Delay measured against the cameras' +printed clocks (clocks bracketed to ±2 ms over ISAPI): ≈ 0.1 s camera → viewer on the LAN, server +adds nothing measurable, browser 1–2 ms; the 10 fps cap cut `.6` to 7 fps and added ≈ 40 ms, so it +was **removed** (`CAMERA_LIVE_MAX_FPS` unset = no cap). A viewer on a ~300 KB/s link runs 13–14 s +behind (TCP buffering) — user judged the delay a non-issue; fix recorded on the page. Updated +[[camera-live-view]], [[passage-confirmation]] (rig table), [[lpr-camera]], index.