Didier Brun of ByteArray just keeps throwing down. Here is another great showcase of the power of AS3 and the tools that can be built with it, strongly based on alogorithms proven in other hardcore languages. This project is a Mouse Gesture Recognition lib for AS3 (demo)
Mouse gesturing can be used for recognition of letters, numbers or even just programmable actions by gesture. Imagine an application that allows you to just make a gesture (even if its not a drawing program or letter recognition) that would open when you make an open gesture, or close a file with a slash gesture. I have many uses for this planned. Very inspiring stuff.
A bit on the algorithm from Didier at ByteArray, I just don’t think it can be made any more simple:
- Each letter is defined by a n ‘ 8-directions gesture sequence
- The mouse moves are saved with the same 8-directions sensibility
- A Levenshtein distance is calculated from each letter to the user moves
- The algorithm return the best candidate (lowest levenshtein cost)
Usage
Example for the B :
gesture=new MouseGesture(stage);
gesture.addGesture(”B”,”260123401234″);
gesture.addEventListener(GestureEvent.MATCH,matchHandler);function matchHandler(e:GestureEvent):void{
trace (e.datas+” matched !”)
}
This project is OPEN SOURCE under RPL License.
2007-05-17 v1.0 mouse_gesture_v1_0.zip


July 20, 2007 at 1:22 am
Gesture recognition with webcam
http://robotdimitron.com/oblici
This is my original work for 8 months
Development
August 6, 2007 at 1:14 pm
great job dimitron that is very cool engine for the first time webcam recognize gesture.
September 9, 2007 at 6:05 am
nice work dimitron
September 13, 2007 at 3:49 am
[...] Blogger has posted a very well done mouse gesture/handwriting/tablet PC silverlight demo. ByteArray has a similar script for flash with a Mouse Gesture library but this is very accurate to real handwriting. Posted in DRAWING, PIXEL, SILVERLIGHT, [...]
January 30, 2008 at 9:57 am
Gesture recognition with webcam
This is my original work for 8 months
Development
January 30, 2008 at 9:57 am
http://www.interaktivnamatematika.com/oblici/index.html
Gesture recognition with webcam