From b745a2018bff0b54de59e3a84e96cc48c40282cc Mon Sep 17 00:00:00 2001 From: gestures3 Date: Wed, 22 Jul 2026 11:30:29 +0300 Subject: [PATCH] poses_detection --- gesture_control/special_gestures.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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'