This commit is contained in:
tanglong 2025-09-16 09:34:03 +08:00
parent 5468642973
commit b3feab76d6
2 changed files with 5 additions and 3 deletions

View File

@ -31,6 +31,9 @@
</StackPanel>
<!-- 右侧视频预览 -->
<Canvas x:Name="rtspPreviewCanvas" Grid.Column="1" Background="Black"/>
<Canvas x:Name="rtspPreviewCanvas" Grid.Column="1" Background="Black">
<Image x:Name="rtspPreviewImage" Stretch="Uniform" />
</Canvas>
</Grid>
</Window>

View File

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