SMART-61 poprawiony kciuk w dol

This commit is contained in:
s460930 2021-01-16 15:32:40 +01:00
parent 8521680069
commit ed00996424
3 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ def get_start_stop(hand_landmarks):
thumb_bottom_y = hand_landmarks.landmark[THUMB_BOTTOM].y
is_thumb_straight = check_finger(hand_landmarks, THUMB_TOP, THUMB_BOTTOM)['straight']
if is_thumb_straight:
if thumb_bottom_y < thumb_top_y:
if thumb_bottom_y + 0.1 < thumb_top_y:
return 'stop'
else:
return 'nothing'

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.