Browse Source

fixed palm detection for new camera

Alexander Hendrich 7 years ago
parent
commit
1bce2c0fcd
3 changed files with 3 additions and 3 deletions
  1. BIN
      .vs/bbiwarg/v14/.suo
  2. BIN
      bbiwarg.v12.suo
  3. 3 3
      bbiwarg/Parameters.cs

BIN
.vs/bbiwarg/v14/.suo


BIN
bbiwarg.v12.suo


+ 3 - 3
bbiwarg/Parameters.cs

@@ -347,7 +347,7 @@ namespace BBIWARG
         /// <summary>
         /// the minimum ratio of the thumb length to the length from the depth point to the outer short point of a convexity defect for possible thumb defects
         /// </summary>
-        public static readonly float HandThumbDefectMinThumbShortLengthRatio = 0.75f;
+        public static readonly float HandThumbDefectMinThumbShortLengthRatio = 0.6f;
 
         #endregion hand detection
 
@@ -513,12 +513,12 @@ namespace BBIWARG
         /// <summary>
         /// the position adjustment for the start point of the flood fill operation
         /// </summary>
-        public static readonly int TouchTipInsideFactor = 2;
+        public static int TouchTipInsideFactor { get { return InputSource == InputType.RS300 ? 10 : 2; }}
 
         /// <summary>
         /// the position adjustment for the position of the actual touch event
         /// </summary>
-        public static readonly int TouchTipOutsideFactor = 7;
+        public static int TouchTipOutsideFactor { get { return InputSource == InputType.RS300 ? 30 : 7; }}
 
         #endregion touch detection