修改
This commit is contained in:
parent
0c62f23379
commit
442387922b
@ -26,7 +26,7 @@
|
||||
VerticalAlignment="Top"
|
||||
Height="900"
|
||||
Width="1920"
|
||||
Margin="0,60,0,0"
|
||||
Margin="0,60,60,0"
|
||||
Padding="0,100"
|
||||
/>
|
||||
<Grid Margin="314,833,214,0" VerticalAlignment="Top" Height="182">
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
</Grid>
|
||||
|
||||
<!--成绩-->
|
||||
<Grid x:Name="RankingGrid" Margin="0,0,0,0" Height="1080" Width="1920" Opacity="1">
|
||||
<Grid x:Name="RankingGrid" Margin="0,0,0,0" Height="1080" Width="1920" Opacity="0">
|
||||
<Image
|
||||
Source="/Resources/Img/test_img/one_rope/finish_img/finish_bg.png"
|
||||
HorizontalAlignment="Center"
|
||||
|
||||
@ -124,6 +124,7 @@ namespace Views.JumpLong
|
||||
if (rightWaving >= 3 && _sportType == 0) //举手完成 开始跳远检测
|
||||
{
|
||||
TipBox.Opacity = 0;
|
||||
TipBox.Visibility = Visibility.Hidden;
|
||||
_sportType = 1;
|
||||
StartSport();
|
||||
}
|
||||
@ -152,7 +153,10 @@ namespace Views.JumpLong
|
||||
return;
|
||||
|
||||
var buffer = frame.GetImageBuffer(ImageFormat.Jpeg).ToArray();
|
||||
var humanResult = await Task.Run<HumanInferenceResult>(() => _humanPredictor.Predicting(buffer, frame.Number));
|
||||
var humanResult = await Task.Run<HumanInferenceResult>(() =>
|
||||
|
||||
|
||||
_humanPredictor.Predicting(buffer, frame.Number));
|
||||
var objects = _sport.Equipment ? await Task.Run<List<BoundingBox>>(() => _objectDetector.Detecting(buffer)) : new List<BoundingBox>();
|
||||
if (_sport.MeasureApparatus != null)
|
||||
objects.AddRange(_sport.MeasureApparatus.Apparatuses);
|
||||
@ -274,7 +278,10 @@ namespace Views.JumpLong
|
||||
//centerImg3.Opacity = 1;
|
||||
_sportType = 2;
|
||||
RankingGrid.BeginAnimation(UIElement.OpacityProperty, fadeInAnimation);
|
||||
ImageBehavior.SetRepeatBehavior(centerImg4, new RepeatBehavior(2));
|
||||
ImageBehavior.SetRepeatBehavior(centerImg4, new RepeatBehavior(1));
|
||||
ImageBehavior.GetAnimationController(centerImg4).Pause();
|
||||
|
||||
|
||||
//_mainWin.WebcamClient.OnExtractFrame -= this.OnFrameExtracted;
|
||||
for (int i = 12; i >= 0; i--)
|
||||
|
||||
@ -242,6 +242,8 @@ namespace Wpf_AiSportsMicrospace.Views
|
||||
private async void StartCountdown(int start = 3)
|
||||
{
|
||||
tipImage.Visibility = Visibility.Collapsed;
|
||||
tipImage.Opacity = 0;
|
||||
userBox.Children.Remove(tipImage);
|
||||
_mainWin.ShowCountDownAnimation();
|
||||
//_currentCountdown = start;
|
||||
|
||||
|
||||
@ -48,8 +48,12 @@
|
||||
<None Remove="Resources\Img\gif\bottom_animation_image.png" />
|
||||
<None Remove="Resources\Img\gif\time_3.gif" />
|
||||
<None Remove="Resources\Img\gif\top_animation_image.png" />
|
||||
<None Remove="Resources\Img\new\group\jump_rope.gif" />
|
||||
<None Remove="Resources\Img\new\group\out.png" />
|
||||
<None Remove="Resources\Img\new\group\pre_user.png" />
|
||||
<None Remove="Resources\Img\new\group\test_bg.png" />
|
||||
<None Remove="Resources\Img\new\group\test_title.png" />
|
||||
<None Remove="Resources\Img\new\group\top_bg.png" />
|
||||
<None Remove="Resources\Img\new\home\card_1.png" />
|
||||
<None Remove="Resources\Img\new\home\card_2.png" />
|
||||
<None Remove="Resources\Img\new\home\card_3.png" />
|
||||
@ -162,12 +166,24 @@
|
||||
<Resource Include="Resources\app.ico">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Resources\Img\new\group\jump_rope.gif">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Resources\Img\new\group\out.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Resources\Img\new\group\pre_user.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Resources\Img\new\group\test_bg.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Resources\Img\new\group\test_title.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Resources\Img\new\group\top_bg.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Resources\Img\new\home\card_1.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user