From 9364b3a21c8bb3f5c7e5409d7c10662a0f84a1a4 Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Tue, 23 Dec 2025 11:13:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Wpf_AiSportsMicrospace/Views/Home.xaml.cs | 7 +++++++ Wpf_AiSportsMicrospace/Views/Setting/LongSetting.xaml.cs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Wpf_AiSportsMicrospace/Views/Home.xaml.cs b/Wpf_AiSportsMicrospace/Views/Home.xaml.cs index 7a386c4..7d451d3 100644 --- a/Wpf_AiSportsMicrospace/Views/Home.xaml.cs +++ b/Wpf_AiSportsMicrospace/Views/Home.xaml.cs @@ -81,6 +81,13 @@ namespace Wpf_AiSportsMicrospace private void Window_Loaded(object sender, RoutedEventArgs e) { _mainWin.HumanFrameUpdated += OnHumanFrameUpdated; + + if (_mainWin.WebcamClient==null) + { + HandyControl.Controls.MessageBox.Show("摄像头网络异常,请重新连接!"); + return; + } + _mainWin.WebcamClient.StartExtract(); Utils.PreloadGifs(); Load_Base(); diff --git a/Wpf_AiSportsMicrospace/Views/Setting/LongSetting.xaml.cs b/Wpf_AiSportsMicrospace/Views/Setting/LongSetting.xaml.cs index e68f759..42a0733 100644 --- a/Wpf_AiSportsMicrospace/Views/Setting/LongSetting.xaml.cs +++ b/Wpf_AiSportsMicrospace/Views/Setting/LongSetting.xaml.cs @@ -62,7 +62,7 @@ namespace Wpf_AiSportsMicrospace.Views using var scope = App.AppHost.Services.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var BaseData = await db.BasicConfig.FirstOrDefaultAsync(); - var host = "172.17.30.66"; + var host = "172.17.30.64"; var name = "admin"; var password = "yd708090"; if (BaseData != null) {