Ver Fonte

improved fignerdetection

Alexander Hendrich há 11 anos atrás
pai
commit
4d60a26553
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 2 2
      bbiwarg/Detectors/Fingers/FingerDetector.cs
  2. 1 1
      bbiwarg/VideoHandle.cs

+ 2 - 2
bbiwarg/Detectors/Fingers/FingerDetector.cs

@@ -31,7 +31,7 @@ namespace bbiwarg.Detectors.Fingers
 
         private void findFingers()
         {
-            int minNumSlices = 8;
+            int minNumSlices = 7;
             int width = depthImage.Width;
             int height = depthImage.Height;
             int maxX = width - 1;
@@ -80,7 +80,7 @@ namespace bbiwarg.Detectors.Fingers
 
         private FingerSliceTrail findFingerSliceTrail(FingerSlice startSlice, Vector2D startDirection)
         {
-            int minNumSlicesForCorrection = 8;
+            int minNumSlicesForCorrection = 7;
             int numRemoveForCorrection = 3;
 
             int maxX = depthImage.Width - 1;

+ 1 - 1
bbiwarg/VideoHandle.cs

@@ -151,7 +151,7 @@ namespace bbiwarg
 
             //detect palm
             Timer.start("palmDetection");
-            palmDetector = new PalmDetector(depthImage, edgeImage, fingerTracker.TrackedFingers, depthPalmTouchOutputImage);
+            palmDetector = new PalmDetector(depthImage, edgeImage, fingerDetector.Fingers, depthPalmTouchOutputImage);
             if (sourceIsMovie() && getCurrentMovieFrame() == 0)
                 PalmDetector.resetFilter();
             Timer.stop("palmDetection");