feat(v1): relax fall sensitivity for low overhead cameras
Adds configurable event.require_rapid_drop (default off), require_lower_body (default off) and horizontal_angle_threshold_degrees (default 45). With the lenient defaults a sustained horizontal pose alone enters SUSPECT and confirms after the confirm window, which is now the main false-positive guard; missing knees/ankles no longer reject the pose. Thresholds flow into config_version. End-to-end smoke confirms a lying pose; 70 tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -307,3 +307,12 @@
|
||||
- 阻塞:无(纯判定逻辑与配置,本环境可测)。
|
||||
- 决策:把三处严格约束参数化并默认放宽——`require_rapid_drop`(默认 False,持续水平即可进入疑似)、`require_lower_body`(默认 False,质量门控只强制肩+髋,膝踝可缺)、`horizontal_angle_threshold_degrees`(默认 45,原 35)。确认窗 `confirm_window_seconds` 保持不变作为唯一防误报主闸(弯腰/捡物不会持续水平 1.8s)。参数进 `config` 与 `runtime_config_version`,可日后经设置页微调。
|
||||
- 下一步:先写放宽后的失败测试(水平即候选、缺膝踝仍接受),再实现并接线。
|
||||
|
||||
## 【2026-07-21】T-209 放宽俯视场景摔倒判定灵敏度(可配置)(完成)
|
||||
|
||||
- 状态:DONE
|
||||
- 变更:`fall_policy.py` 的 `FallEvidencePolicy` 增 `require_rapid_drop`(构造默认 True 保持旧测试;关闭时持续水平即候选)。`evidence.py` 拆分 `_TORSO_JOINTS(肩髋)`/`_LOWER_JOINTS(膝踝)`,`assess_pose_quality` 增 `require_lower_body`(关闭时只强制肩+髋)。`pipeline.py` 增 `require_lower_body`/`horizontal_angle_threshold_degrees` 并在 `process` 传入,`from_config` 从 config 接线三者。`config.py` 的 `EventConfig` 增三字段(默认 `require_rapid_drop=false`/`require_lower_body=false`/`horizontal_angle_threshold_degrees=45`)、`load_config` 解析(新增 `_bool`)、`runtime_config_version` 纳入三者;`config.example.json` 加默认值。
|
||||
- 验证:新增测试——fall_policy(关闭 rapid 门槛后水平即候选)、evidence(关闭下肢要求后缺膝踝仍接受)、config(灵敏度默认放宽);`python3 -m pytest v1/tests -q` 为 70 passed;`python3 -m compileall -q v1 demo` 退出码 0。端到端冒烟:以放宽默认 `from_config` 驱动横臥姿势(躯干 2°、膝踝低置信)——t=0 即进 SUSPECT(`horiz=1 cand=1`),持续到 t=1.9(≥confirm 1.8s)产生一个 `CONFIRMED` 事件;证明放宽后真实躺姿可确认。
|
||||
- 阻塞:无。这些是默认放宽、可日后经设置微调的判定参数;真实误报率仍需 T-204 现场正反例录像验证。
|
||||
- 决策:不删任何信号,只把 rapid/下肢/角度三处严格约束参数化并默认放宽;确认窗 1.8s 作为唯一主防误报闸。函数级默认保持严格(不破坏既有单测),生产默认由 config 放宽。
|
||||
- 下一步:用户以放宽默认复测真实摔倒是否变红并出截图;若出现弯腰/捡物误报,用设置微调 `confirm_window_seconds` 或重开 `require_rapid_drop`;继续 T-203/T-204。
|
||||
|
||||
Reference in New Issue
Block a user