Downloads · 30 days
0
nadizik/mouse-gesture-recognizer
mouse-gesture-recognizer is a machine learning model from nadizik. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
A lightweight, real-time Multi-Layer Perceptron (MLP) neural network with an interactive Tkinter GUI for recognizing 2D mouse and touchpad gestures (Classes 0 to 7).
Downloads · 30 days
0
Access
Public
Updated Aug 19, 2026
Repo size
45.6 KB
Likes
0
Public
Click a slice to open those files.
.pth45.6 KB · 84%
From the Hugging Face model README
A lightweight, real-time Multi-Layer Perceptron (MLP) neural network with an interactive Tkinter GUI for recognizing 2D mouse and touchpad gestures (Classes 0 to 7).
Class 0: Noise / Idle movements
Class 1–7: Target gestures
Tkinter) for drawing gestures using a mouse, touchpad, or touchscreen with real-time classification.scipy.interpolate.interp1d) to normalize any raw drawn trajectory into exactly 64 points ($64 \times 2 = 128$ floats).128 -> 64 -> 32 -> 8) with LeakyReLU activations for instant inference and zero CPU overhead._MEIPASS).| Layer Index | Layer Type | Input Shape | Output Shape | Activation / Details |
|---|---|---|---|---|
net.0 | nn.Linear | 128 | 64 | nn.LeakyReLU(0.1) |
net.2 | nn.Linear | 64 | 32 | nn.LeakyReLU(0.1) |
net.4 | nn.Linear | 32 | 8 | Softmax (temp=0.45) |
git clone [https://huggingface.co/nadizik/mouse-gesture-recognizer](https://huggingface.co/nadizik/mouse-gesture-recognizer)
cd mouse-gesture-recognizer
pip install torch numpy scipy