|
@@ -318,8 +318,8 @@ namespace bbiwarg.Detectors.PalmDetection
|
|
|
{
|
|
|
//right hand
|
|
|
handLength = thumbDefectStart - thumbDefectDepth;
|
|
|
- handWidth = 0.8f * new Vector2D(-handLength.Y, handLength.X);
|
|
|
- topLeft = thumbDefectStart;
|
|
|
+ handWidth = 0.85f * new Vector2D(-handLength.Y, handLength.X);
|
|
|
+ topLeft = thumbDefectStart+0.15f*handLength;
|
|
|
bottomLeft = thumbDefectDepth - 0.4f * handLength;
|
|
|
bottomRight = bottomLeft + handWidth;
|
|
|
topRight = bottomRight + 1.2f * handLength - 0.3f * handWidth;
|
|
@@ -328,11 +328,11 @@ namespace bbiwarg.Detectors.PalmDetection
|
|
|
{
|
|
|
//left hand
|
|
|
handLength = thumbDefectEnd - thumbDefectDepth;
|
|
|
- handWidth = 0.8f * new Vector2D(handLength.Y, -handLength.X);
|
|
|
- topRight = thumbDefectEnd;
|
|
|
+ handWidth = 0.85f * new Vector2D(handLength.Y, -handLength.X);
|
|
|
+ topRight = thumbDefectEnd+0.15f*handLength;
|
|
|
bottomRight = thumbDefectDepth - 0.4f * handLength;
|
|
|
bottomLeft = bottomRight + handWidth;
|
|
|
- topLeft = bottomLeft + 1.2f * handLength - 0.3f * handWidth;
|
|
|
+ topLeft = bottomLeft + 1.15f * handLength - 0.35f * handWidth;
|
|
|
}
|
|
|
|
|
|
PalmQuad = new Quadrangle(bottomLeft, topLeft, topRight, bottomRight);
|