ilaandClaude Opus 4.8 04422d9ca0 fix(v1): wire model confidence, explicit source mode, unique event ids
A: PoseAdapter.set_confidence_threshold is applied on start, so the
   settings model-confidence field actually affects inference.
B: config source.mode ('stream'|'replay') is explicit; app no longer
   guesses the source type from the URL prefix.
C: FallStateMachine takes a session_id and from_config generates a
   unique one per run, so event ids never collide across restarts
   (no screenshot overwrite or duplicate JSONL identity in a day).

51 tests pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-21 20:54:34 +08:00

Silver Pose

Silver Pose 是一个面向固定机位大厅或走廊的本地摔倒事件演示系统。目标是向客户演示“RTSP 实时视频 → 人体姿态与人员跟踪 → 突发倒地事件 → 红色画面、声音、弹窗和事件截图”的完整闭环。

当前阶段是重新建立工程化 V1。旧代码保留在 demo/ 作为可运行基线;v1/ 将存放 Python 正式实现;v2/ 将在 V1 验收后存放 Go 部署实现。

项目结构

silver_pose/
├── demo/                 # 旧 Python 演示基线,含 best.pt 与样例视频
├── v1/                   # Python V1(待任务 T-101 创建)
├── v2/                   # Go V2(V1 验收后才开始)
├── docs/                 # Harness Coding 文档
├── AGENTS.md             # AI coding agent 入口
├── CLAUDE.md             # Claude 薄入口
├── init.ps1              # Windows 统一启动与基础验证入口
└── progress.md           # 只追加执行流水

当前可验证基线

在 Windows PowerShell、仓库根目录运行:

./init.ps1

它会检查当前 Python 环境并编译 demo/。图形界面可用:

Set-Location demo
python main.py

运行 GUI 或 RTSP 演示前,必须在本机准备已安装的 PyQt5、OpenCV、NumPy 与 Ultralytics 环境。真实 RTSP 凭证不得提交。

文档入口

所有 agent 从 docs/00-ai-start-here.md 开始。人类可从 docs/README.md 查看完整导航。

模型说明

demo/best.pt 是与 D:\PythonP\fall_detection 训练工程中 best.pt 哈希一致的 YOLOv8 Pose 权重:1 个 person 类,17 个 COCO 关键点。它提供姿态,不提供“摔倒”标签;摔倒由 V1/V2 的质量门控、跟踪和时序状态机判定。

S
Description
老年人摔倒检测演示项目
Readme
8.5 MiB
Languages
Python 49.8%
Go 47.6%
PowerShell 2.5%
Batchfile 0.1%