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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user