Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3af59fb3d1 | ||
| dca6d924f0 | |||
| 94e33c9a7e |
@ -56,7 +56,7 @@ namespace Wpf_AiSportsMicrospace.Common
|
||||
{
|
||||
try
|
||||
{
|
||||
_webcamClient = WebcamClient.CreateRTSP("172.17.30.65", "admin", "yd708090", 554u);
|
||||
_webcamClient = WebcamClient.CreateRTSP("172.17.30.92", "admin", "yd708090", 554u);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
@ -107,17 +107,17 @@ namespace Wpf_AiSportsMicrospace.Common
|
||||
}
|
||||
|
||||
// --- 右手挥手 ---
|
||||
if (rightWrist != null && rightElbow != null)
|
||||
{
|
||||
int rightWaveResult = DetectHorizontalWave(
|
||||
new Point(rightWrist.X, rightWrist.Y),
|
||||
new Point(rightElbow.X, rightElbow.Y),
|
||||
ref _lastRightWrist,
|
||||
ref _rightWristDeltaX,
|
||||
false);
|
||||
if (rightWaveResult != (int)WavingAction.None)
|
||||
return rightWaveResult;
|
||||
}
|
||||
//if (rightWrist != null && rightElbow != null)
|
||||
//{
|
||||
// int rightWaveResult = DetectHorizontalWave(
|
||||
// new Point(rightWrist.X, rightWrist.Y),
|
||||
// new Point(rightElbow.X, rightElbow.Y),
|
||||
// ref _lastRightWrist,
|
||||
// ref _rightWristDeltaX,
|
||||
// false);
|
||||
// if (rightWaveResult != (int)WavingAction.None)
|
||||
// return rightWaveResult;
|
||||
//}
|
||||
}
|
||||
|
||||
return (int)WavingAction.None;
|
||||
|
||||
@ -189,7 +189,7 @@ namespace Wpf_AiSportsMicrospace.Views
|
||||
}
|
||||
|
||||
int rightWaving = DetectRightHandRaise(humans);
|
||||
if (rightWaving >= 3)
|
||||
if (rightWaving >= 3 && RankingGrid.Visibility != Visibility.Visible)
|
||||
{
|
||||
switch (rightWaving)
|
||||
{
|
||||
|
||||
@ -188,7 +188,7 @@ namespace Wpf_AiSportsMicrospace.Views.JumpRope
|
||||
}
|
||||
|
||||
int rightWaving = DetectRightHandRaise(humans);
|
||||
if (rightWaving >= 3)
|
||||
if (rightWaving >= 3 && RankingGrid.Visibility != Visibility.Visible)
|
||||
{
|
||||
switch (rightWaving)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user