4 Commits
Author SHA1 Message Date
jetson 76b902d318 fix: harden the deferred minors from the parity branch review
- zone_config: a count_line without x_start/x_end/y fell back to the
  frame-space ROI bounds and scaled them a second time (400 -> 266).
- app: _resolve_fcp_mode answers JSON 400 when config.yaml is invalid
  instead of raising through to a Flask 500.
- config: the DEFAULTS fallback (missing/empty config.yaml) is validated
  like a real config, and a test pins DEFAULTS to the shipped config.yaml.
- job: add_job downgrades zone_mode "fixed" to "dynamic" when no calibrated
  ROI was supplied — the label now matches what the job counts against.
- counting: correct the FCP citation (src/counting.py:171).
- tests: the analyze_env stub was missing the new result fields, so every
  /upload job ended in FAILED; cover the truncation fields in both job
  endpoints, /upload/reuse zone mode and the broken-config path.
2026-10-28 09:23:14 +07:00
jetson f4e7b5da49 feat: count against calibrated static zone by default (FCP parity) 2026-10-27 13:51:08 +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