Alexander Hendrich 10 年 前
コミット
266dec3014
1 ファイル変更1 行追加1 行削除
  1. 1 1
      bbiwarg/Recognition/PalmRecognition/PalmDetector.cs

+ 1 - 1
bbiwarg/Recognition/PalmRecognition/PalmDetector.cs

@@ -82,7 +82,7 @@ namespace bbiwarg.Recognition.PalmRecognition
             Vector2D directionWristFingers = thumbDefect.VectorLong.normalize();
             Vector2D directionUpperLower = thumbDefect.VectorLong.getOrthogonal(side == HandSide.Right).normalize();
             Vector2D wristLower = wristUpper.moveWithinBound(directionUpperLower, palmWidth);
-            Vector2D fingersLower = (wristUpper + 0.75f * palmLength * directionWristFingers + 0.75f * palmWidth * directionUpperLower).moveInBound((directionUpperLower + directionWristFingers).normalize());
+            Vector2D fingersLower = (wristUpper + 0.75f * palmLength * directionWristFingers + 0.75f * palmWidth * directionUpperLower).moveInBound((directionUpperLower + directionWristFingers).getInverse().normalize());
 
             return new Palm(hand, thumbDefect, side, wristUpper, fingersUpper, fingersLower, wristLower);
         }