feat(v2): implement operator monitoring window
This commit is contained in:
+12
-44
@@ -1,52 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"silverpose/v2/internal/ui"
|
||||
"log"
|
||||
|
||||
. "github.com/lxn/walk/declarative"
|
||||
"silverpose/v2/internal/ui"
|
||||
)
|
||||
|
||||
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()
|
||||
window, err := ui.NewWindow(ui.Settings{
|
||||
SourceEnvironment: "SILVER_POSE_RTSP_URL",
|
||||
ModelSHA256: "fac42d41a2ae3108dc42b3a2097f299e27d7f4055cb6b26a319fad0b0a3f286e",
|
||||
RuntimeSummary: "Go + ONNX Runtime + FFmpeg(技术 Spike)",
|
||||
EventSummary: "确认窗 1.8 秒;仅确认摔倒使用红色",
|
||||
}, ui.Commands{})
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
window.Run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user