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) {