Explorar el Código

Improved PalmDetector stability.

Daniel Kauth hace 11 años
padre
commit
0237244bce
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      bbiwarg/Detectors/Palm/PalmDetector.cs

+ 5 - 2
bbiwarg/Detectors/Palm/PalmDetector.cs

@@ -60,9 +60,12 @@ namespace bbiwarg.Detectors.Palm
                 removePointsFromContour(wristLine, 1);
                 removePointsFromContour(thumbLine, 1);
 
-                findPalmRect();
+                if (palmContour.Count<Point>() != 0)
+                {
+                    findPalmRect();
 
-                draw();
+                    draw();
+                }
             }
         }