poses_detection
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user