This commit is contained in:
tanglong 2025-12-23 11:13:55 +08:00
parent e4f1e87342
commit 9364b3a21c
2 changed files with 8 additions and 1 deletions

View File

@ -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();

View File

@ -62,7 +62,7 @@ namespace Wpf_AiSportsMicrospace.Views
using var scope = App.AppHost.Services.CreateScope();
var db = scope.ServiceProvider.GetRequiredService<AppDbContext>();
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) {