ss
This commit is contained in:
parent
5468642973
commit
b3feab76d6
@ -31,6 +31,9 @@
|
|||||||
</StackPanel>
|
</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>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
@ -7,6 +7,7 @@ using System.Net.NetworkInformation;
|
|||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
using Wpf_AiSportsMicrospace.Common;
|
using Wpf_AiSportsMicrospace.Common;
|
||||||
using Yztob.AiSports.Common;
|
using Yztob.AiSports.Common;
|
||||||
using Yztob.AiSports.Inferences.Abstractions;
|
using Yztob.AiSports.Inferences.Abstractions;
|
||||||
@ -121,7 +122,6 @@ public partial class MainWindow : Window
|
|||||||
if (!Directory.Exists(tempPath))
|
if (!Directory.Exists(tempPath))
|
||||||
Directory.CreateDirectory(tempPath);
|
Directory.CreateDirectory(tempPath);
|
||||||
|
|
||||||
|
|
||||||
_sport.Reset();
|
_sport.Reset();
|
||||||
_sport.Start();
|
_sport.Start();
|
||||||
_detectQueue.Start();
|
_detectQueue.Start();
|
||||||
@ -160,7 +160,6 @@ public partial class MainWindow : Window
|
|||||||
|
|
||||||
var human = humanResult?.Humans?.FirstOrDefault();
|
var human = humanResult?.Humans?.FirstOrDefault();
|
||||||
_detectQueue.Enqueue(frame.Number, human, null);
|
_detectQueue.Enqueue(frame.Number, human, null);
|
||||||
|
|
||||||
}
|
}
|
||||||
private void OnSportTick(int counts, int times)
|
private void OnSportTick(int counts, int times)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user