o
/|\ 
/ \
________________________
|                      |
|  sleepygeek.org      |
|   - projects.dollar  |
|______________________|
           | | 
           | | 
           | | 
|0       |10       |20       |30       |40       |50       |60       |70     80|
|                                                                              |
\-------[ projects ]----------------[ photos ]---------------[ contact ]-------/
 = $1 Gesture Recognizer in python
-----------------------

The $1 Gesture Recognizer is a research project by Wobbrock, Wilson and Li of
the University of Washington and Microsoft Research. It describes a simple
algorithm for accurate and fast recognition of drawn gestures.

Gestures can be recognised at any position, scale, and under any rotation.
The system requires little training, achieving a 97% recognition rate with 
only one template for each gesture.

Here, you can find a quick Python port of the JavaScript implementation.

If you spot any bugs, please let me know!

 = Usage:
-----------------------

from dollar import Recognizer r = Recognizer() r.addTemplate('square', [(1, 10), (3, 8) ... ]) r.addTemplate('circle', [(4, 7), (5, 13) ... ]) (name, score) = r.recognize([(5, 6), (7, 12), ... ])
'name' will now contain the name of the closest-matching gesture, and 'score' is a measure of the accuracy of or confidence in this match. = Files: ----------------------- * dollar.py - The Recognizer class. * recognizer_demo.py - A quick demo application, using WxPython. Screenshot of simple demo application.