fixed distance to being straight

This commit is contained in:
Michał Maciaszek 2021-02-01 13:57:59 +01:00
parent 7dd4af8db2
commit 47ca224e2a

View File

@ -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