diff --git a/docs/current-state.md b/docs/current-state.md index 39e5488..96a3a8b 100644 --- a/docs/current-state.md +++ b/docs/current-state.md @@ -10,7 +10,7 @@ - 旧生产基线:`demo/main.py`、`demo/fall_detection_gui.py`、`demo/detect_fall.py`、`demo/best.pt`。 - V1 代码:`v1/` 目录存在但尚无实现。 - V2 代码:`v2/` 目录存在但尚无实现。 -- 非代码设计工件:docs/ui/silver-pose-ui-ux-spec.md、docs/ui/2026-07-20-html-prototype-plan.md 与 docs/ui/silver-pose-v1-prototype.html 已建立。UI 文档已将正式默认主题定为浅灰蓝底、白色卡片,红色只表示确认摔倒。当前 HTML 仍为历史深色版本,等待单独授权后再按文档重绘;其顶部双 Tab、设置草稿与状态交互仍可作为结构参考。画面、事件和时间均为模拟数据,不连接真实摄像头、模型或网络,也不改变 Phase 1 任务顺序。 +- 非代码设计工件:docs/ui/silver-pose-ui-ux-spec.md、docs/ui/2026-07-20-html-prototype-plan.md、docs/ui/silver-pose-v1-prototype.html 与 docs/ui/silver-pose-v2-prototype.html 已建立。v2 HTML 是符合正式浅色 Windows 规范的当前视觉参考:浅灰蓝底、白色卡片,红色只表示确认摔倒、其弹窗和事件证据;文件名中的 v2 只表示原型设计修订,不能理解为 Go V2 实现已开始。v1 HTML 保留为历史深色对照。两者均使用顶部双 Tab、设置草稿与状态交互,且画面、事件和时间都是模拟数据,不连接真实摄像头、模型或网络,也不改变 Phase 1 任务顺序。 - 测试:暂无 pytest 测试;`python -m compileall -q demo` 已通过。 - 模型:`demo/best.pt` 可加载为 YOLO Pose,类别 `person`,`kpt_shape=[17, 3]`;与 `D:\PythonP\fall_detection\best.pt` 哈希一致。 - 当前标准启动:`./init.ps1`。 diff --git a/docs/ui/2026-07-20-html-prototype-plan.md b/docs/ui/2026-07-20-html-prototype-plan.md index da33de3..d604db5 100644 --- a/docs/ui/2026-07-20-html-prototype-plan.md +++ b/docs/ui/2026-07-20-html-prototype-plan.md @@ -104,6 +104,10 @@ The revised prototype has a horizontal tablist with monitoring and settings tabs Use the approved light Windows palette from the UI specification: a pale blue-gray page background, white cards and toolbars, and semantic borders. Red is reserved exclusively for a confirmed fall and the associated dialog or event evidence. The existing dark HTML prototype must be recolored in a separate approved implementation task; it is not the visual source of truth after this revision. +## Light theme implementation + +The approved repaint is delivered as `docs/ui/silver-pose-v2-prototype.html`. This is a standalone, offline design revision only; the `v2` filename does not begin the Go V2 implementation or alter its V1 acceptance gate. The historical dark `silver-pose-v1-prototype.html` remains unchanged for comparison. The new artifact supports `#settings`, `#confirmed`, and `#offline` hashes for deterministic local visual review of the settings, confirmed-event dialog, and reconnect states. + - Spec coverage: Task 1 implements all specified views, dialog behavior, responsive breakpoints, keyboard paths, state text, offline limitation, and validation conditions. - Placeholder scan: no unresolved placeholder markers or file paths appear in this plan. - Consistency: the three controller state names are consistently `normal`, `confirmed`, and `offline`; the dialog and acknowledgement element IDs are fixed across layout and behavior. diff --git a/docs/ui/silver-pose-v2-prototype.html b/docs/ui/silver-pose-v2-prototype.html new file mode 100644 index 0000000..35e6870 --- /dev/null +++ b/docs/ui/silver-pose-v2-prototype.html @@ -0,0 +1,688 @@ + + + + + + + Silver Pose · 浅色 Windows 演示原型 + + + +
+
+
+ +
Silver Pose摔倒事件演示 · 单路本地监控
+
+
+ + 大厅东侧 · 固定俯视演示机位 + 来源在线 · 模拟画面 +
+
演示数据
+
+ + + +
+
+
+

实时监控

+

展示同一人员的姿态和事件状态。演示数据,未连接真实摄像头或模型。

+
+ +
+
+ + + +
+
+ + +
+
+ +
+
+

大厅东侧 · 画面预览

全身大部分可见,姿态质量满足监控条件。

16:9 示例画面
+
+
NORMAL
+ P-017 · 姿态可用 + + + + + + + + + + + + + 入口区域 + 服务台 + + + + + + + + + + + + + + + + + +
视频源正在重连连接异常不生成摔倒事件,也不播放报警。
+
+
+ + +
+ +
+

最近事件

原型仅展示摘要;正式版由本地 JSONL 事件记录提供。

无新增确认事件
+
+
+
+ + +
+ + +
+ +
+
+ + +

确认摔倒

已生成一次本地报警副作用

+

人员 P-017 的倒地证据已持续满足确认条件。请按现场流程确认情况。

确认时间12:08:42
确认延迟1.8 秒
事件编号FALL-00017
截图状态已保存(演示)
+
+
+ + + + diff --git a/progress.md b/progress.md index aff7bae..11d76d5 100644 --- a/progress.md +++ b/progress.md @@ -62,3 +62,12 @@ - 阻塞:按本轮用户范围未修改 HTML。现有 HTML 为深色历史原型,不能作为正式色彩实现来源,需在后续单独重绘。 - 决策:后续 PyQt T-201 与任何新的 HTML 原型必须以浅色 Windows 主题规范为准,不得将红色用于非确认摔倒场景。 - 下一步:等待用户授权,将 docs/ui/silver-pose-v1-prototype.html 重绘为浅色主题。 + +## 【2026-07-20】DESIGN 浅色 Windows HTML 原型修订 + +- 状态:DONE +- 变更:新增 `docs/ui/silver-pose-v2-prototype.html` 作为独立离线原型。它使用浅灰蓝页面背景、白色卡片和集中 CSS 令牌;红色只用于确认摔倒、告警弹窗和事件证据。保留顶部双 Tab、正常/确认/断流三种状态、一次性告警弹窗、设置草稿及下一次启动生效边界;未改动历史深色 v1 原型。 +- 验证:Node.js 22 已解析唯一内联脚本,并检查状态控件、Tab、弹窗、三个响应式断点及浅色主题令牌;隐私与网络边界扫描未发现凭证、模型路径或网络行为;`./init.ps1` 通过。Chrome 无界面模式实际渲染了正常、确认摔倒、连接异常、900 宽设置和 600 宽设置画面;确认摔倒显示红色弹窗,连接异常不显示红色告警,窄宽度为纵向重排。 +- 阻塞:无。原型不连接真实摄像头、模型、声音或文件系统;截图路径和事件均为演示数据。 +- 决策:文件名中的 v2 仅表示 HTML 视觉修订,不启动 Go V2,也不改变 V1 验收和 ONNX 一致性门槛。 +- 下一步:T-101;后续 T-201 以 v2 HTML 和 UI/UX 规格实现 PyQt 浅色 Windows 界面。