[Plugin] : Unistroke Gesture Recognizer

Post your completed addons to share with the community

Post » Thu Feb 02, 2012 9:51 am

@newt : I saw on IRC you proposed an idea to compare old/new points, but I'm not sure where you want to add that.
If it's an idea to simplify new gestures before adding them to the library, it's not necessary. You can use a bunch of points (even if some of them are overlapping), the lib is doing itself the cleaning (it's a kind of Procruste analysis to simplify the input gesture to compare it against the reference).
Some screenshots from the paper :
1: you can see there's some variability in the input gesture

2: so the gesture is resampled internally to a predefined number of equidistant points

3: the gesture is rotated, always in the same direction, to make it
rotation independent

4: finally some error rate regarding recognition, depending on the number of availble samples to compare against (you see there that 3 is the minimum efficient number) - Rubine is another algorithm from the field, and DTW is Dynamic Time Warping, more powerful, but way more ressources hungry (too much for a quick Javascript, at least)
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Thu Feb 02, 2012 4:12 pm

Well the question is, if you can avoid introducing duplicate points, would it make any difference?
Also, just to clarify, when adding variants, should you clear the existing points, when adding a new variant?newt2012-02-02 16:12:58
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Thu Feb 02, 2012 4:38 pm

If you can avoid inputting duplicate point, it's going to speed the cleaning of the shape byt the lib (but I don't how much milliseconds are gained, really).
When you add a new variant, you don't need to clear, because clear empty the list from all user input. I need to add that on the original post.
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Tue Feb 07, 2012 4:50 pm

New build ! http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/pode_1StrokeGestureRecognizer0.2.zip
You can now access the Centroid, the Bound Box and the Angle of the last gesture ! (it helps to create little demo like "Crayon Physics Deluxe ;) : http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/c2physicsDeluxe.capx

You can also delete all the gesture given at the start of the library, and something specially for newt : 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
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Tue Feb 07, 2012 7:41 pm

Cool.
Really nice plug here Pode. Thanks.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Tue Feb 07, 2012 10:23 pm

@newt : I'm glad there's a least somebody who likes it (a bit) ! ;)
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
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Tue Feb 07, 2012 10:47 pm

Um somethings not working correctly. There's extra files in the zip, and the updated demo isn't working either.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Wed Feb 08, 2012 6:55 am

Where i can use this things?
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Post » Wed Feb 08, 2012 7:49 am

newt : argh ! Sorry, I mixed up two folders. It should be okay now. If there's still something, don't hesitate to say so ! ;)
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Wed Feb 08, 2012 2:35 pm

Ok, I recognize it now, it's my 6 months old daughter who made the release this morning... As you can see, there's stil way to go before being a true programmer ;).
Here's the new release, everything should work, I promise : 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
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 5 guests