diff --git a/gesture_control/special_gestures.py b/gesture_control/special_gestures.py index ac61dc0..ab10628 100644 --- a/gesture_control/special_gestures.py +++ b/gesture_control/special_gestures.py @@ -171,4 +171,18 @@ class SpecialGestureDetector: if wrist_at_nose_x and wrist_at_nose_y: return "kulak-nos" + + # ---- Рука к левому плечу ---- + wrist_at_shoulder_x = abs(r_wr[0] - l_sh[0]) < 0.2 * shoulder_width + wrist_at_shoulder_y = abs(r_wr[1] - l_sh[1]) < 0.2 * torso_height + + + if wrist_at_shoulder_x and wrist_at_shoulder_y: + return "wrist-shoulder" + + + + + + return 'none'