You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A class for detecting gestures using the Teager-Kaiser energy operator on EMG signals.
12
+
The temporary discrete control class for interfacing the cross-user Myo model made available at: <insert git repo here>.
13
+
The model currently supports 5 gestures: Close, Flexion, Extension, Open, Pinch.
14
+
These gestures can be mapped to keyboard keys for controlling applications.
15
+
16
+
Parameters
17
+
----------
18
+
odh: OnlineDataHandler
19
+
The online data handler object for streaming EMG data.
20
+
window_size: int
21
+
The window size (in samples) to use for splitting up each template.
22
+
increment: int
23
+
The increment size (in samples) for the sliding window.
24
+
model: torch.nn.Module
25
+
The trained PyTorch model for gesture classification.
26
+
buffer: int, optional
27
+
The size of the prediction buffer to use for mode filtering. Default is 1.
28
+
template_size: int, optional
29
+
The size of each EMG template (in samples). Default is 250 (1.5s for the Myo Armband).
30
+
min_template_size: int, optional
31
+
The minimum number of samples required before starting to make predictions (helps reduce the delay needed between subsequent gestures). Default is 100.
32
+
key_mapping: dict, optional
33
+
A dictionary mapping gesture names to keyboard keys. Default maps 'Close' to 'c', 'Flexion' to 'f', 'Extension' to 'e', 'Open' to 'o', and 'Pinch' to 'p'.
34
+
debug: bool, optional
35
+
If True, enables debug mode with additional print statements. Default is True.
0 commit comments