feat(v1): edit detection sensitivity from the settings tab

Adds write_local_event_tuning and a sensitivity group (confirm window,
horizontal angle, require-rapid-drop, require-lower-body) that persists to
the untracked local config and applies next start. 79 tests pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ila
2026-07-22 00:00:51 +08:00
co-authored by Claude Opus 4.8
parent 922609f236
commit d3cd8ecb55
7 changed files with 123 additions and 4 deletions
+8 -1
View File
@@ -99,8 +99,15 @@ class ApplicationController:
self._draft = _draft_from_config(config)
env_ready = bool(config.source_url)
model_summary = "{0} · {1}…".format(config.model_path.name, config.model_sha256[:12])
event_tuning = {
"require_rapid_drop": config.event.require_rapid_drop,
"require_lower_body": config.event.require_lower_body,
"horizontal_angle_threshold_degrees": config.event.horizontal_angle_threshold_degrees,
"confirm_window_seconds": config.event.confirm_window_seconds,
}
self.window = MainWindow(
self._draft, env_ready, model_summary, config.source_id, config_path, camera
self._draft, env_ready, model_summary, config.source_id,
config_path, camera, event_tuning,
)
self.window.monitor.start_requested.connect(self.start)
self.window.monitor.stop_requested.connect(self.stop)