- stabilizer max_hold 10 -> 25 frames (~1s occlusion hold, platform parity) - cfg/tracker.yaml track_buffer 60 -> 90 (identical to platform now) - ByteTrackTracker gains iou=0.7 (passed to model.track, platform parity) - stabilizer/tracking modules now byte-identical to karung_counter_semarang - 177 tests pass
38 lines
1.5 KiB
YAML
38 lines
1.5 KiB
YAML
# config.yaml — tunable pipeline parameters (single source of truth).
|
|
# Edit values here instead of the code. Restart the web app / re-run CLI to apply.
|
|
# Zones (polygons) live in zones.json. Tracker hyperparams live in cfg/tracker.yaml.
|
|
# Missing keys fall back to built-in defaults — partial files are fine.
|
|
|
|
detection:
|
|
sack_conf: 0.4 # detector confidence for sack
|
|
box_conf: 0.35 # detector confidence for box
|
|
truck_conf: 0.45 # truck detector confidence
|
|
|
|
# Per-class minimum bbox area (px^2) — authored in platform's 1280x720
|
|
# reference space; pipeline scales to actual frame size (physical parity).
|
|
min_bbox_area:
|
|
sack: 1500
|
|
box: 1500
|
|
truck: 5000
|
|
|
|
iou:
|
|
dedup: 0.5 # cross-model duplicate merge threshold
|
|
suppress_sack_box: 0.4 # drop sack overlapping a box (box label wins)
|
|
synthetic: 0.3 # synthetic track ID matching
|
|
sticky_truck: 0.3 # keep previous main truck pick
|
|
|
|
roi:
|
|
ema_alpha: 0.15 # truck ROI smoothing
|
|
deadband_px: 10 # skip EMA when all edges moved less than this
|
|
freeze_after: 3 # consecutive detections before freeze mode locks
|
|
|
|
stabilizer:
|
|
ema_alpha: 0.35
|
|
max_hold: 25 # frames to hold occluded tracks (platform parity: 25 = ~1s @25fps)
|
|
|
|
pipeline:
|
|
detect_interval: 1 # detection+tracking every N frames (1 = every frame, most accurate)
|
|
sup_det_interval: 5 # supplementary models every N frames
|
|
truck_det_interval: 15 # truck ROI detection every N frames
|
|
preview_every_n: 5 # preview JPEG every N frames
|