Yeah, I'm looking into handwriting recognition stuff now.
It's kind of in vein of those spell casting games where you draw some pattern freehand on screen and then that pattern is recognized as pattern for some spell, so you activate some action by drawing a specific pattern.
So I'm basically tracking movement positions and then I connect those points with lines to get whatever pattern you drew. It's a freehand thing, so it's like you did a brushstroke, it can be curvy or whatever.