diff --git a/Wpf_AiSportsMicrospace/MainWindow.xaml b/Wpf_AiSportsMicrospace/MainWindow.xaml index 8bbde93..d00a1bd 100644 --- a/Wpf_AiSportsMicrospace/MainWindow.xaml +++ b/Wpf_AiSportsMicrospace/MainWindow.xaml @@ -31,6 +31,9 @@ - + + + + diff --git a/Wpf_AiSportsMicrospace/MainWindow.xaml.cs b/Wpf_AiSportsMicrospace/MainWindow.xaml.cs index e4acd59..7873411 100644 --- a/Wpf_AiSportsMicrospace/MainWindow.xaml.cs +++ b/Wpf_AiSportsMicrospace/MainWindow.xaml.cs @@ -7,6 +7,7 @@ using System.Net.NetworkInformation; using System.Windows; using System.Windows.Controls; using System.Windows.Media; +using System.Windows.Media.Imaging; using Wpf_AiSportsMicrospace.Common; using Yztob.AiSports.Common; using Yztob.AiSports.Inferences.Abstractions; @@ -121,7 +122,6 @@ public partial class MainWindow : Window if (!Directory.Exists(tempPath)) Directory.CreateDirectory(tempPath); - _sport.Reset(); _sport.Start(); _detectQueue.Start(); @@ -160,7 +160,6 @@ public partial class MainWindow : Window var human = humanResult?.Humans?.FirstOrDefault(); _detectQueue.Enqueue(frame.Number, human, null); - } private void OnSportTick(int counts, int times) {