AS3 Mouse Gesture Recognition

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)

Photo Sharing and Video Hosting at Photobucket 

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:

Photo Sharing and Video Hosting at Photobucket

  1. Each letter is defined by a n ‘ 8-directions gesture sequence
  2. The mouse moves are saved with the same 8-directions sensibility
  3. A Levenshtein distance is calculated from each letter to the user moves
  4. 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

Advertisements

7 Responses to “AS3 Mouse Gesture Recognition”

  1. dimitron Says:

    Gesture recognition with webcam
    http://robotdimitron.com/oblici
    This is my original work for 8 months
    Development

  2. miittooo Says:

    great job dimitron that is very cool engine for the first time webcam recognize gesture.

  3. aleksandar Says:

    nice work dimitron

  4. Silverlight Mouse/Tablet Handwriting Recognition « [ draw.logic ] Says:

    […] 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, […]

  5. dimitron Says:

    Gesture recognition with webcam
    This is my original work for 8 months
    Development

  6. Rana Says:

    B = 260123401234….how ? please Answer me .


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: