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

View File

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

View File

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