Public Member Functions | |
def | __init__ |
def | classify_svm |
def | init_classifier |
def | movement_cb |
Public Attributes | |
data | |
sound_new | |
window |
Subscribes to mouse movements, detects wincing, and signals e-stop.
Definition at line 20 of file wouse_demo.py.
def wouse_demo.Wouse.__init__ | ( | self, | |
svm_datafile | |||
) |
Initialize svm classifier and needed services.
Definition at line 24 of file wouse_demo.py.
def wouse_demo.Wouse.classify_svm | ( | self, | |
x, | |||
y, | |||
time | |||
) |
Build the descriptor vector for the incoming mouse event, and classify with the svm.
Definition at line 60 of file wouse_demo.py.
def wouse_demo.Wouse.init_classifier | ( | self, | |
filename | |||
) |
Unpickle svm training data, train classifier
Definition at line 36 of file wouse_demo.py.
def wouse_demo.Wouse.movement_cb | ( | self, | |
v3 | |||
) |
Filter out small movements, check classifier, call stop if needed.
Definition at line 48 of file wouse_demo.py.
Definition at line 24 of file wouse_demo.py.
Definition at line 24 of file wouse_demo.py.
Definition at line 24 of file wouse_demo.py.