-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yaml
112 lines (112 loc) · 3.46 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: 1.2
mapping:
- VideoStream:
args:
webcam_id: 0
processors:
- FacialExpressionClassifier:
processors:
- SignalDivider: # expressions
triggers:
- FacialExpressionTrigger:
args:
name: "browOuterUpLeft"
confidence: 0.37
action:
- MouseClick:
args:
key_name: left
- FacialExpressionTrigger:
args:
name: "browDownRight"
confidence: 0.62
action:
- KeyCommand:
args:
command:
- space
- FacialExpressionTrigger:
args:
name: "mouthLeft"
confidence: 0.51
action:
- KeyCommand:
args:
command:
- cmd
- c
- FacialExpressionTrigger:
args:
name: "mouthRight"
confidence: 0.21
action:
- KeyCommand:
args:
command:
- n
- SignalDivider: # landmarks
args:
index: 1
triggers:
- RegionOfInterest: # nose in upper left corner
args:
position: [0, 0]
size: [0.5, 0.5]
landmarks: [1]
action:
- Logger
- RegionOfInterest: # nose in upper right corner
args:
position: [0.5, 0]
size: [0.5, 0.5]
landmarks: [1]
action:
- Logger
- RegionOfInterest: # nose in lower left corner
args:
position: [0, 0.5]
size: [0.5, 0.5]
landmarks: [1]
action:
- Logger
- RegionOfInterest: # nose in lower right corner
args:
position: [0.5, 0.5]
size: [0.5, 0.5]
landmarks: [1]
action:
- Logger
- LandmarkDistance: # mouth open
args:
landmarks: [12, 15]
threshold: 0.02
action:
- Logger
- LandmarkDistance: # mouth close
args:
landmarks: [12, 15]
threshold: 0.02
direction: "smaller"
action:
- Logger
- LandmarkDistance: # mouth small
args:
landmarks: [61, 291]
threshold: 0.09
direction: "smaller"
action:
- Logger
processors:
- LandmarkEuroFilter:
args:
min_cutoff: 1
beta: 0
triggers:
- RelativeCursorControl:
args:
x_threshold: 0.02
y_threshold: 0.02
velocity_compensation_x: 0.15
velocity_compensation_y: 3.0
action:
- MoveMouse