fix: reduce alarm snapshot label obstruction
This commit is contained in:
@@ -315,4 +315,27 @@
|
||||
- Remote health returned `status=ok` and `runtime_status=running`.
|
||||
- Remote container config shows the new thresholds.
|
||||
- After deployment, latest diagnostics stabilized at `zone_counts = {"1": 1, "2": 1, "6": 1}`.
|
||||
- During a two-minute observation window after `13:25`, no new `batch_consumed` events were emitted; only expected pre-warning/alarm lifecycle events appeared for the occupied zones.
|
||||
- During a two-minute observation window after `13:25`, no new `batch_consumed` events were emitted; only expected pre-warning/alarm lifecycle events appeared for the occupied zones.
|
||||
|
||||
## Current Task: Reduce Alarm Snapshot Label Visual Obstruction
|
||||
|
||||
**Goal:** Region labels on uploaded alarm screenshots should be smaller and more transparent so operators can inspect the food/display image underneath.
|
||||
|
||||
**Design:** Keep the existing label content, placement, CJK font rendering, and per-zone colors. Only reduce the visual weight of the label layer by lowering font size, black label-box opacity, border width, and fallback label-box opacity.
|
||||
|
||||
- [x] Inspect current alarm snapshot label rendering style.
|
||||
- [x] Add a regression test for smaller ffmpeg drawtext label style.
|
||||
- [x] Reduce drawtext font size and label-box opacity.
|
||||
- [x] Keep fallback label renderer visually consistent with the ffmpeg path.
|
||||
- [x] Run full local verification.
|
||||
- [x] Deploy the updated snapshot overlay style to `xiaozheng@10.8.0.23`.
|
||||
- [x] Verify remote runtime health and deployed label style.
|
||||
|
||||
### Notes
|
||||
|
||||
- Targeted snapshot test passed: `PYTHONPATH=src python3 -m unittest tests/test_alarm_snapshots.py -v`.
|
||||
- Full local verification passed: `PYTHONPATH=src python3 -m unittest discover -s tests -v` (`103` tests).
|
||||
- Remote verification passed:
|
||||
- `GET /api/manage/health` returned `status=ok` and `runtime_status=running`.
|
||||
- Running container uses `fontsize=13`, `boxcolor=black@0.34`, and `boxborderw=2` for region labels.
|
||||
- `cold-display-guard-runtime` logs show normal startup after restart.
|
||||
|
||||
Reference in New Issue
Block a user