14 Commits
Author SHA1 Message Date
jetson b9d4bd11b3 feat(counting): align max_step_dy (160) and unload_confirm (1) with FCP main 2026-11-17 11:15:35 +07:00
jetson 3cc0919fb1 feat(pipeline,config): sync detection thresholds, filter order, and multi-model tracking with FCP main 2026-11-17 10:19:54 +07:00
jetson ff55a733d6 feat(counting,zones): align corridor filter and default palet zone with FCP main 2026-11-17 09:39:47 +07:00
jetson 7662890cc5 feat(counting): port FCP's ID-switch, corridor and single-count gates 2026-11-12 11:49:40 +07:00
jetson 1c313d97d8 fix: match FCP's batch lifecycle (count every frame, predict.py:739-745) 2026-10-28 09:57:26 +07:00
jetson acc74dcb62 chore: match FCP truck detection cadence (every 5 frames) 2026-10-27 14:55:52 +07:00
jetson 70acfbb90f chore: align stabilizer max_hold with FCP (10 frames) 2026-10-27 14:54:43 +07:00
jetson 3c354c6d81 chore: align detection thresholds with FCP (sack conf 0.30, box area 1000) 2026-10-27 14:53:23 +07:00
jetson 371e9593d8 fix: review pass — atomic busy-guard, exact FCP mode filters, docs
- _ANALYZE_LOCK: busy-check through enqueue is atomic; overlapping
  POSTs can no longer both pass the busy guard (one-GPU contract)
- fcp.mode_models now {letter: {stem: engine_classes}} mirroring FCP
  models.modes engines[].classes exactly: B/D use v4-best truck-only
  role (not truck-detector), C filters yolo11n to box only — prevents
  sack double-count and truck-ROI divergence vs FCP batches
- CHANGELOG: document /api/analyze + stem filter fix
- handoff doc: correct precedence (fcp_mode wins over model_stems),
  correct B/D mapping note
- tests: 4 new (mode B/C/D filters, concurrent-submit race) — 195 pass
2026-10-20 11:34:34 +07:00
jetson 540e1b5dcd feat: POST /api/analyze machine endpoint (fcp_mode, 202/409/401)
- /api/analyze: multipart video + fcp_mode letter (A-D) or explicit
  model_stems; 202 {job_id,status_url}; 409 busy guard (one GPU);
  optional X-API-Key auth iff env RECOUNTER_API_KEY set
- config.yaml fcp.mode_models: FCP mode -> recounter stems (mirrors
  platform models.modes; C = current active_mode)
- extract _save_and_queue from /upload (save/transcode/zone/job);
  /upload behavior unchanged
- fix src/job.py: single-model class_filter looked up by filename,
  stem-keyed filters were silently dropped
2026-10-20 10:55:06 +07:00
jetson 37e2d3e296 sync: mirror platform counting params (stabilizer hold, track_buffer, tracker iou)
- 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
2026-10-15 14:12:35 +07:00
jetson c2d720e86c fix: scale min_bbox_area from platform 1280x720 reference to frame size
Platform force-resizes frames to 1280x720 before detection, so its
1500/5000 px2 thresholds are authored in that space. Applying them raw
at native 1080p made recounter's effective bar 2.25x weaker — false
divergence in double-check runs. _scaled_min_areas scales by frame area
(1080p: 3375/11250, 720p: unchanged).

Platform's get_min_valid_area perspective gate is dead code (zero call
sites) — deliberately not ported, it would make recounter stricter than
platform. 174 tests pass (+1).
2026-10-13 14:50:32 +07:00
jetson ce604b0574 feat: platform detection parity + download/processing progress bars
Alignment with karung_counter_semarang (recount consistency):
- box_conf 0.35, truck_conf 0.45, suppress_sack_box 0.4
- detector/tracker run at min(sack_conf, box_conf) so 0.35 boxes survive
  inference; _apply_class_confs gates box/box_conf, sack/sack_conf
- _apply_min_area guardrail: sack/box 1500, truck 5000 px2
- 168 tests pass (+5)
2026-10-13 11:30:04 +07:00
jetson 7230e2b3c8 feat: config.yaml as single source of truth for tunables
- config.yaml (root): detection conf, iou thresholds (dedup/suppress/
  synthetic/sticky), roi (ema/deadband/freeze_after), stabilizer, intervals
- src/config.py: deep-merge file over built-in defaults, missing file safe
- pipelines resolve None-sig params from config; CLI --sack-conf/--truck-conf
  override; TruckROITracker sticky_iou param
- 163 tests pass (+8)
2026-10-13 10:02:43 +07:00