Explorar o código

improved fignerdetection

Alexander Hendrich %!s(int64=11) %!d(string=hai) anos
pai
achega
4d60a26553
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  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");