Cool but how is the math used to recognize gestures?
It appears to be a dot product of a vector field and the curve vector (i.e. a line integral). I think this approach can't handle certain cases where a path is retraced in opposite directions, like with the handwritten letter 't' or 'i'. Perhaps curvature integrals could be added as well to improve it. Overall seems to work quite well!
Gesture Recognition with Line Integrals
11–17 of 17 posts
Re: Gesture Recognition with Line Integrals
#12Earlier quoted context omitted.
It appears to be a dot product of a vector field and the curve vector (i.e. a line integral). I think this approach can't handle certain cases where a path is retraced in opposite directions, like with the handwritten letter 't' or 'i'. Perhaps curvature integrals could be added as well to improve it. Overall seems to work quite well!
I think it works quite poorly: https://imgur.com/a/oDpVkZ6
Re: Gesture Recognition with Line Integrals
#13Re: Gesture Recognition with Line Integrals
#14Earlier quoted context omitted.
Looks like you draw your digits differently. It's "trained" to my style. Try making your own glyphs and see how it does.
Perhaps, but how does that 9 I drew ever map to a 6?
Re: Gesture Recognition with Line Integrals
#15It was ridiculously hard to get 4 to work, is this a limitation of the algorithm or just something with the implementation?
How do you draw your 4? The one I used is the "one stroke" 4 where you draw it from left, top, and then down.
Re: Gesture Recognition with Line Integrals
#16It was ridiculously hard to get 4 to work, is this a limitation of the algorithm or just something with the implementation?
How do you draw your 4? The one I used is the "one stroke" 4 where you draw it from left, top, and then down.
│ │
└--┤
│
Weren't going to work so I switched to the style in the font: ╱│
∠--┼
│
And it really liked to give 7, 6, or 2 if I went in the left,upRight,down pattern.I think I found out the trick though: if you make a sharp 4 like the font you get random results but if you just make smooth loop of it (almost looks like a tilted roller coaster) it gets it every time.
Re: Gesture Recognition with Line Integrals
#17It was ridiculously hard to get 4 to work, is this a limitation of the algorithm or just something with the implementation?