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:
@@ -370,3 +370,12 @@
|
||||
- 阻塞:设置页控件需 Windows 冒烟;写回与 config 往返本环境可测。
|
||||
- 决策:与摄像头连接同样走"写回未跟踪 config.local.json、下次启动生效",不进数值草稿(含布尔控件)。
|
||||
- 下一步:写 `write_local_event_tuning` 往返测试,加设置页控件与保存。
|
||||
|
||||
## 【2026-07-22】T-211 检测灵敏度参数进设置页(完成)
|
||||
|
||||
- 状态:DONE
|
||||
- 变更:`config.py` 新增 `write_local_event_tuning`(只更新 event 块的 require_rapid_drop/require_lower_body/horizontal_angle_threshold_degrees/confirm_window_seconds,保留其它字段)。`gui.py` 设置页新增「检测灵敏度」分组:确认窗口数字、水平角度阈值数字、两个勾选(要求快速下移/要求膝踝清晰),保存按钮写回本地配置。`app.py` 从 config 预填这四项传入设置页。
|
||||
- 验证:新增 config 测试(`write_local_event_tuning` 往返且保留其它 event 字段);`python3 -m pytest v1/tests -q` 为 79 passed;`python3 -m compileall -q v1` 退出码 0。
|
||||
- 阻塞:设置页控件需 Windows 冒烟;写回与 config 往返本环境已验证。
|
||||
- 决策:灵敏度与摄像头连接一致,走"写回未跟踪 config.local.json、下次启动生效",不进数值草稿(含布尔控件不便统一)。
|
||||
- 下一步:T-212 实时流只处理最新帧降延迟。
|
||||
|
||||
Reference in New Issue
Block a user