fixed distance to being straight
This commit is contained in:
parent
7dd4af8db2
commit
47ca224e2a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user