Edit : <font color="red">Update 08 - february - 2012</font>
New build !http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/pode_1StrokeGestureRecognizer.0.3.zip
Demo : http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/index.html
To appologize, there's a new functionnality : remove a specific gesture, by name
Edit : <font color="red">Update 07 - february - 2012</font>
New build ! http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/pode_1StrokeGestureRecognizer0.2.zip
- Centroid, Bounding Box, Angle
- delete all gesture from the lib (even those given at the start)
- add a custom list of points ! (provided as "X1,Y1|X2,Y2|...|XnYn)
The demo is updated, by the way : http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/index.html
Edit2 : I also added a Custom Gesture Creator : http://dl.dropbox.com/u/1412774/CustomGestureCreator/index.html
http://dl.dropbox.com/u/1412774/CustomGestureCreator/GestureCreator.capx. It's easier for the creation of custom gesture's pointlists...
____________________
I remembered using a library to work with wiimote, helping to recognize gestures made with the gamepad.
That lib is there : http://depts.washington.edu/aimgroup/proj/dollar/
So I made a plugin for C2 today, that helps to recognize gestures made by the user, which uses that lib.
You can get that plugin there : http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/pode_1StrokeGestureRecognizer.zip
I also made a quick demo app, mimicking the one from the original link :
<img src="http://i.imgur.com/6fR9V.jpg" border="0">
http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/index.html
And a demo capx : http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/oneStrokeGestureRecognizerC2PluginDemo.capx
One thing to know : in the original algorithm, the recognition works when there's more than 10 points defined for a gesture.
In a future rev., I'm going to add the possibility to give directly to the plugin a list of points (for example, if you already determined a predefined gesture), and the possibility to load that from a file.
When I have more time, I'm going to integrate the N strokes (multistrokes) Javascript lib from the same team...
Edit : it's up to you to set a level (score) under which the gesture isn't recognized, because the lib will try its best to recognize something anyway. I usually go for something between 75 (it let pass a few bad detection) to 90 (pretty strict detection).
Edit2 : In the original paper, to have a good recognition when you add new gestures, you need to add at least 3 variants of that gesture. So if you want to detect a new gesture, to forget to draw it 3 times and add it 3 times ! :)
Edit3 : the action "Clear Point List" empties any user defined gesture, not gesture pre-packaged with the lib !