From 47ca224e2a548fabf91c0b580f4969126024641a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Maciaszek?= Date: Mon, 1 Feb 2021 13:57:59 +0100 Subject: [PATCH] fixed distance to being straight --- client/gestures/simple_gestures_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/gestures/simple_gestures_lib.py b/client/gestures/simple_gestures_lib.py index fb2b652..70973ae 100644 --- a/client/gestures/simple_gestures_lib.py +++ b/client/gestures/simple_gestures_lib.py @@ -78,7 +78,7 @@ def check_finger(hand_landmarks, top_idx, bottom_idx): by = hand_landmarks.landmark[0].y distance_bottom_start = calculate_distance(ax, ay, bx, by) - if distance_bottom_start < distance_top_bottom + 0.1: + if distance_bottom_start < distance_top_bottom + 0.05: straight = True else: straight = False