feat: add rtsp snapshot calibrator

This commit is contained in:
Yoilun
2026-04-27 11:12:00 +08:00
parent 36dc3548e6
commit b3672c564a
8 changed files with 715 additions and 0 deletions

View File

@@ -111,3 +111,11 @@ The vision layer should output normalized observations:
```
Trash disposal confirmation should use motion/object evidence inside the trash ROI, not merely a person standing near the bin.
## Calibration Tool
The project includes a local RTSP snapshot calibration tool under `tools/calibrator`.
The tool runs a small standard-library HTTP server. The browser submits an RTSP URL to `/api/capture`; the server calls `ffmpeg`, extracts one JPEG frame, and returns it to the browser. The page then lets the operator draw normalized polygons for `r1c1` through `r2c4` plus `trash`.
This intentionally uses a single captured frame rather than a live preview. Calibration only needs a representative camera view, and a snapshot avoids browser RTSP limitations and live stream transcoding.