From 621f2c348b83ee1e9c9e08ab66b8c75865742f86 Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Wed, 13 May 2026 11:34:10 +0800 Subject: [PATCH] =?UTF-8?q?ai=E4=BC=98=E5=8C=967?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Wpf_AiSportsMicrospace/Common/SportOperate.cs | 6 +++--- Wpf_AiSportsMicrospace/Views/Home.xaml.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Wpf_AiSportsMicrospace/Common/SportOperate.cs b/Wpf_AiSportsMicrospace/Common/SportOperate.cs index d955581..957db19 100644 --- a/Wpf_AiSportsMicrospace/Common/SportOperate.cs +++ b/Wpf_AiSportsMicrospace/Common/SportOperate.cs @@ -34,7 +34,7 @@ namespace Wpf_AiSportsMicrospace.Common private readonly CalcBaseRule _raiseLeftHandRule; private int _leftWaveCount = 0; private int _rightWaveCount = 0; - private const int WaveThreshold = 3; + private const int WaveThreshold = 2; WebcamClient _webcamClient; private DateTime? _wristStartTime = null; @@ -49,8 +49,8 @@ namespace Wpf_AiSportsMicrospace.Common _raiseRightHandRule = RaiseHand.RaiseRightHand(); _raiseLeftHandRule = RaiseHand.RaiseLeftHand(); - _leftTracker.Amplitude = 0.3f; - _rightTracker.Amplitude = 0.3f; + _leftTracker.Amplitude = 0.22f; + _rightTracker.Amplitude = 0.22f; } public WebcamClient CreateRTSP() diff --git a/Wpf_AiSportsMicrospace/Views/Home.xaml.cs b/Wpf_AiSportsMicrospace/Views/Home.xaml.cs index c94f2fa..502bb28 100644 --- a/Wpf_AiSportsMicrospace/Views/Home.xaml.cs +++ b/Wpf_AiSportsMicrospace/Views/Home.xaml.cs @@ -34,7 +34,7 @@ namespace Wpf_AiSportsMicrospace private WavingAction _lastGestureAction = WavingAction.None; private DateTime _lastMenuSlideTime = DateTime.MinValue; private bool _isNavigating; - private const int MenuSlideCooldownMs = 420; + private const int MenuSlideCooldownMs = 360; public Home() {