Compare commits
No commits in common. "bf2027035c1051cf0fa3c5b40189a8adb6b2848d" and "9271e77f68af8e244fbda43db8d394d686a6c811" have entirely different histories.
bf2027035c
...
9271e77f68
Binary file not shown.
|
Before Width: | Height: | Size: 3.8 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6.2 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.8 MiB |
@ -1,9 +1,7 @@
|
||||
<UserControl x:Class="Wpf_AiSportsMicrospace.Home"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:Wpf_AiSportsMicrospace.MyUserControl"
|
||||
xmlns:gif="http://wpfanimatedgif.codeplex.com"
|
||||
Title="Home" Height="1080" Width="1920" Loaded="Window_Loaded">
|
||||
xmlns:local="clr-namespace:Wpf_AiSportsMicrospace.MyUserControl" Loaded="Window_Loaded">
|
||||
<Grid VerticalAlignment="Bottom">
|
||||
<Grid.Background>
|
||||
<ImageBrush ImageSource="/Resources/Img/Album/home_bg.png" Stretch="UniformToFill"/>
|
||||
@ -28,44 +26,5 @@
|
||||
Margin="0,250,0,0"
|
||||
Padding="0,100"
|
||||
/>
|
||||
<Grid Margin="314,803,314,0" VerticalAlignment="Top" Height="182">
|
||||
<Image
|
||||
Source="/Resources/Img/Album/change_back.png"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
Width="330"
|
||||
Margin="0,100,0,0"
|
||||
/>
|
||||
<Image
|
||||
gif:ImageBehavior.AnimatedSource="/Resources/Img/Album/2.gif"
|
||||
gif:ImageBehavior.RepeatBehavior="Forever"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
Margin="-20,10,30,20"
|
||||
/>
|
||||
|
||||
<Image
|
||||
Source="/Resources/Img/Album/change_right.png"
|
||||
HorizontalAlignment="right"
|
||||
VerticalAlignment="Top"
|
||||
Width="330"
|
||||
Margin="0,100,0,0"
|
||||
/>
|
||||
<Image
|
||||
gif:ImageBehavior.AnimatedSource="/Resources/Img/Album/1.gif"
|
||||
gif:ImageBehavior.RepeatBehavior="Forever"
|
||||
HorizontalAlignment="right"
|
||||
VerticalAlignment="Top"
|
||||
Margin="50,10,200,20"
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Image
|
||||
gif:ImageBehavior.AnimatedSource="/Resources/Img/Album/3.gif"
|
||||
gif:ImageBehavior.RepeatBehavior="Forever"
|
||||
HorizontalAlignment="right"
|
||||
VerticalAlignment="Top"
|
||||
Margin="100,120,200,20"
|
||||
/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
||||
@ -24,6 +24,7 @@ using Yztob.AiSports.Postures.Sports;
|
||||
using Yztob.AiSports.Postures.Things;
|
||||
using Yztob.AiSports.Sensors.Abstractions;
|
||||
using Yztob.AiSports.Sensors.Things;
|
||||
|
||||
namespace Wpf_AiSportsMicrospace
|
||||
{
|
||||
/// <summary>
|
||||
@ -36,8 +37,6 @@ namespace Wpf_AiSportsMicrospace
|
||||
private ConcurrentQueue<VideoFrame> _frameQueue = new();
|
||||
private CancellationTokenSource _cts = new();
|
||||
private SportOperate _sportOperate;
|
||||
public static Uri loadingImage = new Uri("/Resources/Img/Album/1.gif", UriKind.Relative);
|
||||
|
||||
|
||||
public Home()
|
||||
{
|
||||
@ -63,22 +62,19 @@ namespace Wpf_AiSportsMicrospace
|
||||
|
||||
// 默认选中第3张
|
||||
coverFlow.SelectedIndex = 0;
|
||||
|
||||
|
||||
//AnimationBehavior.SetSourceUri(LoadingImage, loadingImage);
|
||||
}
|
||||
|
||||
private void Window_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
//_sportOperate = new SportOperate();
|
||||
//_webcamClient = _sportOperate.CreateRTSP();
|
||||
_sportOperate = new SportOperate();
|
||||
_webcamClient = _sportOperate.CreateRTSP();
|
||||
|
||||
//_webcamClient.OnExtractFrame += frame =>
|
||||
//{
|
||||
// if (frame != null)
|
||||
// _frameQueue.Enqueue(frame);
|
||||
//};
|
||||
//_webcamClient.StartExtract();
|
||||
_webcamClient.OnExtractFrame += frame =>
|
||||
{
|
||||
if (frame != null)
|
||||
_frameQueue.Enqueue(frame);
|
||||
};
|
||||
_webcamClient.StartExtract();
|
||||
|
||||
StartFrameProcessing();
|
||||
|
||||
|
||||
@ -9,11 +9,8 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="Resources\Img\Album\1.gif" />
|
||||
<None Remove="Resources\Img\Album\1.jpg" />
|
||||
<None Remove="Resources\Img\Album\2.gif" />
|
||||
<None Remove="Resources\Img\Album\2.jpg" />
|
||||
<None Remove="Resources\Img\Album\3.gif" />
|
||||
<None Remove="Resources\Img\Album\3.jpg" />
|
||||
<None Remove="Resources\Img\Album\4.jpg" />
|
||||
<None Remove="Resources\Img\Album\5.jpg" />
|
||||
@ -92,21 +89,12 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\Img\Album\1.gif">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Resources\Img\Album\1.jpg">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Resources\Img\Album\2.gif">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Resources\Img\Album\2.jpg">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Resources\Img\Album\3.gif">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Resources\Img\Album\3.jpg">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user