feat(v2): complete Go inference and UI spike

This commit is contained in:
ila
2026-07-22 16:01:28 +08:00
parent 104608751a
commit 22aadf2b26
16 changed files with 411 additions and 13 deletions
+52
View File
@@ -0,0 +1,52 @@
package main
import (
"silverpose/v2/internal/ui"
. "github.com/lxn/walk/declarative"
)
func main() {
spec := ui.MonitorWindowSpec()
MainWindow{
Title: spec.Title,
MinSize: Size{Width: spec.Width, Height: spec.Height},
Layout: VBox{},
Children: []Widget{
TabWidget{
Pages: []TabPage{
{
Title: "监控",
Layout: HBox{},
Children: []Widget{
GroupBox{
Title: "实时画面",
Layout: VBox{},
Children: []Widget{
TextLabel{Text: "视频帧将在此呈现"},
},
},
GroupBox{
Title: "当前状态",
Layout: VBox{},
Children: []Widget{
TextLabel{Text: "检测状态:NORMAL"},
TextLabel{Text: "事件:暂无"},
TextLabel{Text: "运行时:Go + ONNX Runtime"},
},
},
},
},
{
Title: "设置",
Layout: VBox{},
Children: []Widget{
TextLabel{Text: "设置将在 T-304 接入本机配置;不保存摄像头凭证。"},
},
},
},
},
},
}.Run()
}