forked from andrew/feedmill-recounter
docs: changelog for the static-zone default (f4e7b5d)
This commit is contained in:
1 parent
f4e7b5da49
commit
d53e9426fb
3 files changed
+13
-3
No files matched your search
@@ -40,6 +40,16 @@ version tags are cut in this repo — `main` is the release line).
|
||||
filename fallback for legacy callers).
|
||||
|
||||
### Changed
|
||||
- **Default counting zone is now the calibrated static zone** (`f4e7b5d`):
|
||||
`zone_mode` defaults to `"fixed"` (the `zones.json` calibration, built in the
|
||||
1280x720 analysis frame) instead of `"dynamic"`, where the count line was
|
||||
derived from the detected truck bbox — a moving line. FCP always counts
|
||||
against its calibrated line (`predict.py:715-724`, `:1037`, `:1066`).
|
||||
**Consequence: published counts change for every clip** analysed without an
|
||||
explicit `zone_mode` (e.g. `POST /api/analyze`) — the count line no longer
|
||||
follows the truck; the web form already sent `zone_mode=fixed`.
|
||||
`"dynamic"` stays available as an explicit opt-in, and a deployment with no
|
||||
calibration file on disk falls back to `"dynamic"` automatically.
|
||||
- **Analysis frame pinned to 1280x720, model input pinned to 640x640**
|
||||
(`fcdfed1`): every decoded frame is resized to 1280x720 before detection
|
||||
(FCP `predict.py:826`) and both models run with an explicit `imgsz=640`
|
||||
|
||||
@@ -139,8 +139,8 @@ Models without "truck" class: `best`, `karung-dimuat`, `yolo11n-bbox` (auto-load
|
||||
|
||||
The web upload form offers three zone modes:
|
||||
|
||||
- **Auto-detect Truck** (default): truck detector finds the main truck each ~15 frames, ROI + counting line follow it (EMA-smoothed with 10px deadband, sticky truck pick)
|
||||
- **Fixed Zone**: static zone from `zones.json` presets, scaled from reference resolution to video resolution; never moves; presets editable via `tools/calibrate_zone.py`
|
||||
- **Auto-detect Truck**: truck detector finds the main truck each ~15 frames, ROI + counting line follow it (EMA-smoothed with 10px deadband, sticky truck pick)
|
||||
- **Fixed Zone** (default): static zone from `zones.json` presets, scaled from reference resolution to video resolution; never moves; presets editable via `tools/calibrate_zone.py`
|
||||
- **Auto-detect + Freeze**: auto-detects the truck then locks the ROI permanently after 3 consecutive detections (geometry fixed, truck-presence still tracked for batch state machine)
|
||||
|
||||
In multi-model runs, model #1 (primary, alphabetical order) is tracked every frame; supplementary models run every 5th frame; detections from supplementary models get synthetic track IDs so counts and overlays stay stable.
|
||||
@@ -18,7 +18,7 @@ curl -X POST http://192.168.192.93:9050/api/analyze \
|
||||
-H "X-API-Key: $RECOUNTER_API_KEY" \
|
||||
-F "video=@clip.mp4" \
|
||||
-F "fcp_mode=C" \
|
||||
-F "zone_mode=dynamic" # optional: dynamic|freeze|fixed
|
||||
-F "zone_mode=fixed" # optional: dynamic|freeze|fixed (default: fixed)
|
||||
-F "zone_preset=..." # optional, only with zone_mode=fixed
|
||||
-F "output_height=720" # optional
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user