update:bug

This commit is contained in:
tanglong 2026-03-30 11:16:19 +08:00
parent 41a38fccb8
commit a5802b7a1d
3 changed files with 9 additions and 9 deletions

View File

@ -15,8 +15,7 @@
<!--<Border Background="#60000000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>--> <!--<Border Background="#60000000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>-->
<Image Source="/Resources/Img/new/group/top_bg.png" Width="331" <Image Source="/Resources/Img/new/group/top_bg.png" Width="331"
HorizontalAlignment="Left" VerticalAlignment="Top" Margin="4,0,0,0" Height="133"/> HorizontalAlignment="Left" VerticalAlignment="Top" Margin="4,0,0,0" Height="133"/>
<!--<TextBlock Text="{Binding DisplayText, RelativeSource={RelativeSource AncestorType=UserControl}}"--> <TextBlock Text="{Binding DisplayText, RelativeSource={RelativeSource AncestorType=UserControl}}"
<TextBlock Text="游客-A"
FontSize="26" FontSize="26"
Foreground="#ffd855" Foreground="#ffd855"
FontWeight="Bold" FontWeight="Bold"
@ -24,8 +23,7 @@
Margin="16,45,0,0" Margin="16,45,0,0"
HorizontalAlignment="Left" HorizontalAlignment="Left"
VerticalAlignment="Top"/> VerticalAlignment="Top"/>
<!--<TextBlock Text="{Binding NumberText, RelativeSource={RelativeSource AncestorType=UserControl}}"--> <TextBlock Text="{Binding NumberText, RelativeSource={RelativeSource AncestorType=UserControl}}"
<TextBlock Text="100"
FontSize="46" FontSize="46"
Width="110" Width="110"
TextAlignment="Center" TextAlignment="Center"

View File

@ -213,6 +213,8 @@ namespace Wpf_AiSportsMicrospace.Views
{ {
// 举左手逻辑,例如结束动画或退出 // 举左手逻辑,例如结束动画或退出
_isCountdownStarted = true; _isCountdownStarted = true;
_mainWin.HumanFrameUpdated -= OnHumanFrameUpdated;
var newPage = new Home(); var newPage = new Home();
_mainWin?.SwitchPageWithMaskAnimation(newPage, true); _mainWin?.SwitchPageWithMaskAnimation(newPage, true);
return; // 提前退出 return; // 提前退出
@ -241,12 +243,9 @@ namespace Wpf_AiSportsMicrospace.Views
private async void StartCountdown(int start = 3) private async void StartCountdown(int start = 3)
{ {
tipImage.Visibility = Visibility.Collapsed;
tipImage.Opacity = 0;
userBox.Children.Remove(tipImage);
_mainWin.ShowCountDownAnimation(); _mainWin.ShowCountDownAnimation();
//_currentCountdown = start; //_currentCountdown = start;
Utils.PlayBackgroundMusic("countdown_3.mp3", false); Utils.PlayBackgroundMusic("countdown_3.mp3", false);
//开始人脸识别============================================= //开始人脸识别=============================================
@ -282,6 +281,9 @@ namespace Wpf_AiSportsMicrospace.Views
//_mainWin.FacialRecognitionEvent += handler; //_mainWin.FacialRecognitionEvent += handler;
await Task.Delay(3000); await Task.Delay(3000);
tipImage.Visibility = Visibility.Collapsed;
tipImage.Opacity = 0;
userBox.Children.Remove(tipImage);
FinishCountdown(); FinishCountdown();
} }

View File

@ -186,7 +186,7 @@ namespace Wpf_AiSportsMicrospace.Views.JumpRope
if (leftWaving == 5) if (leftWaving == 5)
{ {
_mainWin.HumanFrameUpdated -= OnHumanFrameUpdated; _mainWin.HumanFrameUpdated -= OnHumanFrameUpdated;
_mainWin.WebcamClient.StopExtract(); //_mainWin.WebcamClient.StopExtract();
// 举左手逻辑,例如结束动画或退出 // 举左手逻辑,例如结束动画或退出
var newPage = new Home(); var newPage = new Home();