SMART-61 poprawiony kciuk w dol
This commit is contained in:
parent
8521680069
commit
ed00996424
@ -32,7 +32,7 @@ def get_start_stop(hand_landmarks):
|
|||||||
thumb_bottom_y = hand_landmarks.landmark[THUMB_BOTTOM].y
|
thumb_bottom_y = hand_landmarks.landmark[THUMB_BOTTOM].y
|
||||||
is_thumb_straight = check_finger(hand_landmarks, THUMB_TOP, THUMB_BOTTOM)['straight']
|
is_thumb_straight = check_finger(hand_landmarks, THUMB_TOP, THUMB_BOTTOM)['straight']
|
||||||
if is_thumb_straight:
|
if is_thumb_straight:
|
||||||
if thumb_bottom_y < thumb_top_y:
|
if thumb_bottom_y + 0.1 < thumb_top_y:
|
||||||
return 'stop'
|
return 'stop'
|
||||||
else:
|
else:
|
||||||
return 'nothing'
|
return 'nothing'
|
||||||
|
BIN
client/image.png
BIN
client/image.png
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 2.7 KiB |
Binary file not shown.
Loading…
Reference in New Issue
Block a user