Compare commits
1
Commits
18191cb490
...
vladimir
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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'
|
||||
|
||||
Reference in New Issue
Block a user