Commit Graph

52 Commits

Author SHA1 Message Date
c2571961c4 统一配方名与文件名并限制非法名称 2026-11-09 14:38:15 +08:00
dab92c08e0 统一配方目录并迁移设置录像标注与模型 2026-11-09 14:33:06 +08:00
e05fd2c483 修复模型尺寸不匹配导致手部与目标检测同时失效 2026-11-09 14:16:53 +08:00
60b093a13f 训练后自动导出并按配方加载ONNX模型 2026-11-09 11:48:54 +08:00
ef41b97037 新增标注与训练参数保存按钮 2026-11-09 11:01:07 +08:00
c7aab2f96e 按配方累计零件数据并自动更新命名模型 2026-11-09 10:45:41 +08:00
29a00fc349 将录像保存目录同步为导入视频默认目录 2026-11-09 08:59:28 +08:00
20537967e4 修复:补齐 Linux 标注 Python 环境并在升级时保留运行时 2026-11-08 22:52:09 +08:00
93a59735a0 优化:按行生成模型输入张量以减少逐像素原生调用 2026-11-08 22:22:30 +08:00
b61f14767b 优化:直接仿射裁剪手部区域以消除大画布旋转开销 2026-11-08 22:21:04 +08:00
b0b8d30174 功能:通过 WebGPU 和 Vulkan 启用 Linux AMD 模型推理 2026-11-08 22:15:06 +08:00
9fee54a021 更新依赖 2026-11-08 22:01:02 +08:00
e1dc2143ba 图标 2026-11-08 21:55:13 +08:00
6359fadad8 修复主界面在开始前显示当前所选配方 2026-11-08 21:51:35 +08:00
3436d08d4a 调整操作员主界面并新增运行设置页 2026-11-08 21:48:12 +08:00
cb33b67329 升级:将跨平台图像依赖迁移到 OpenCvSharp 5 2026-11-08 21:41:04 +08:00
23f90e4f10 优化:启用 Linux GPU 渲染并将预览与推理解耦 2026-11-08 21:31:54 +08:00
5be8b8587f 修复:使用独立帧快照刷新 Avalonia 相机预览 2026-11-08 21:07:25 +08:00
62d9a1a8a7 Keep only the standalone Avalonia application and its shared engine 2026-11-08 20:32:51 +08:00
102fea1a9b Fix Linux MVS frame ABI by packaging the matching vendor binding 2026-11-08 20:14:15 +08:00
d3317a0cb2 Publish Windows and Linux from the unified Avalonia source tree 2026-11-08 19:58:13 +08:00
ae79ff3a98 Port the full Windows workflow to one shared Avalonia desktop application 2026-11-08 19:55:05 +08:00
528d286b8f Add one shared engine target for Windows and Linux Avalonia builds 2026-11-08 19:35:39 +08:00
28c34e4a17 Add Avalonia Linux desktop with SOP detection and video validation 2026-11-08 19:06:47 +08:00
50782fafec Add Linux CPU engine target sharing existing inference and SOP code 2026-11-08 18:57:15 +08:00
0e779dc942 Remove hand_action condition and action editor 2026-11-07 23:30:53 +08:00
ad1c2a4bb7 Remove wrong-order violation detection 2026-11-07 23:29:19 +08:00
3cdb71bb28 Fix training runtime to bundled python directory 2026-11-07 15:02:21 +08:00
a5111e69a6 fix: apply dark window theme to camera recorder 2026-11-07 14:20:22 +08:00
6c67e0d210 Release SOP camera on stop so recording can open 2026-11-07 13:28:03 +08:00
a708a71f7a Remove model testing feature from SopHelper 2026-11-07 13:20:58 +08:00
f1783f321d Integrate PartTrainer workflow into SopHelper 2026-11-07 09:09:04 +08:00
f3418cd1a8 Migrate selected camera, branding, handedness and YOLO safeguards to main 2026-11-06 19:20:00 +08:00
6a5bc1a6b4 Add required item editing controls and target detection overlays 2026-11-06 01:09:56 +08:00
ca7930b9af Clear step completion states when a round finishes 2026-11-06 00:14:24 +08:00
6397a33644 Add ONNX model file picker to recipe editor 2026-11-06 00:01:02 +08:00
da06e5aa77 Add button for creating step violation rules 2026-11-05 23:52:48 +08:00
15472311ff Fix saving detection methods for steps without conditions 2026-11-05 23:47:10 +08:00
e739dcf35c Improve recipe region editor layout and keep editor open after saving 2026-11-05 23:43:36 +08:00
9e51dea52d 删除退出按钮 2026-11-05 22:50:10 +08:00
a4348eb472 fix: 修复配方编辑输入框裁切及模型字段绑定 2026-11-05 22:47:02 +08:00
cbf97b6b4f feat: 启用 CUDA GPU 推理并保留 CPU 回退 2026-11-05 22:40:32 +08:00
e98b669a7c fix: 将手部检测置信度门槛降至40% 2026-11-05 22:18:09 +08:00
3a1b315225 feat: 显示双手关键点与骨架并解除模型单手限制 2026-11-05 21:56:14 +08:00
0cc83d0a71 fix: 应用退出时停止采集并按顺序释放相机和推理资源 2026-11-05 21:40:01 +08:00
d079c59b4f feat: 增加海康相机视频采集与 SOP 配方编辑器 2026-11-05 21:37:09 +08:00
5fb36a7569 fix(App): GUI 实操验证后的六处修复
实操跑了一遍软件,逐个修掉现场暴露的问题:
- 默认页导航:CreateShell 里立刻 RequestNavigate 会静默失败(区域未注册),挪到窗口 Loaded
- ComboBox:WPF 默认模板白底,深色主题下选中项看不见字,重写控件模板
- 相机下拉框:DisplayMemberPath 运行时没生效(显示 ToString()),改显式 ItemTemplate
- 命令状态:Prism DelegateCommand 不会因属性变化自动重估 CanExecute,
  选了相机后「开始/停止」仍灰着点不动——SelectedCamera/SelectedRecipe 里补 RaiseCanExecuteChanged
- 右下角「相机未连接」是静态文字,改成绑定 ConnectionText
- 手部模型默认路径与实际文件名不符(palm_detection_full_* / hand_landmark_sparse_*),
  之前 ResolveModel 返回 null、手部链路静默不跑,实测耗时从 0 变为 7.8ms
2026-11-03 03:35:04 +08:00
a8b9719bb2 fix(Engine): YOLO/palm 解码实测修正——已解码框、已烘焙 sigmoid、palm→landmark 倍率 2.5
实测(真实视频帧 + 真实照片):
- yolo11n.onnx 前 4 通道是已解码的 cx,cy,w,h(DFL 已烘焙,取值 3~637px),
  类别块 min=0 / max=0.61 / 8.8% 恰好为 0 → sigmoid 已在图里,不能再见 sigmoid
  (判据:类别块自身有无负值;坐标行在暗帧会出负值,不能当判据)
- palm 直出的框是手掌大小,landmark 要整手框:倍率 2.5(MediaPipe 官方 palm→hand
  scale factor;PINTO demo 的 1.25 是乘在 gold_yolo 整手框上,不适用这条路径)
- palm 喂 RGB(0.93 vs BGR 0.045);旋转角公式经 handedness 验证(官方角度 1.000,反号 0.000)

修正后:YOLO 每帧 1~3 框 conf∈[0,1](照片 person 0.917 罩住手),
MediaPipe 照片 21 关键点贴合手指(conf 0.997)、视频帧 0.892
2026-11-03 02:52:27 +08:00
6e5555994d feat(App): SOP 页 — 画面+ROI 覆盖层 + 步骤卡 + Top3 违规 + 日志 + 运行控制
- ViewModel 构造注入引擎三件套,需在 RegisterTypes 显式注册(反射扫描只覆盖本程序集)
- 帧 Mat 只在采集线程事件存活期内有效,必须当场克隆再交给渲染定时器
- ROI 覆盖层用 Viewbox 内层 Grid = 帧像素尺寸,配方坐标天然对齐
- WritePixels 的 rect 是(宽,高),与 OpenCvSharp 的 Rows/Cols 相反
- 纯 WPF 样式,无 HandyControl / SkiaSharp.Views.WPF
2026-11-03 01:21:58 +08:00
b75684b254 feat(Engine): SOP 引擎 — 配方 YAML 加载/校验 + 条件判定 + 违规 + 状态机
- 配方 schema 沿用参考项目(sop/settings/regions/steps),现有 YAML 可直接搬
- 只实现其配方里真被用过的 8 个方法,未实现的在加载期就报出来
- 稳定帧门控按 (步骤Id,条件序号) 计数,time_elapsed/hand_move/hand_action 豁免
- 违规:超时/跳步(仅看紧邻下一步)/必留物被拿走,同类 3s 冷却
- 引擎层只用自有 DetRect,不引用任何 WPF 类型,事件解耦给 UI
- configs/sop/demo.yaml: 不依赖检测模型的最小闭环示例
2026-11-03 01:09:24 +08:00