poses_detection

vladimir
gestures3 8 hours ago
parent 18191cb490
commit b745a2018b

@ -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'

Loading…
Cancel
Save