mariogarranz Posted March 2, 2015 Share Posted March 2, 2015 Hi there:I'm trying to code some pattern recognition detection using touches coordinates. This means recognizing groups of 3, 4, 5, and more points with a given pattern. A simple case would be, having a list of 10 points finding out if any combination of 3 of those results in a given triangle whose sides lengths are known. The triangle (or any shape) could be rotated any number of degrees and positioned anywhere in the screen, which is what makes the problem harder to solve.My guess is this should be something already studied and that I should easily find some algorithms that perform this or similar tasks but I've had no luck so far.Is it too complicated? Anyone who can help pointing me in the right direction?Thanks in advance Quote Link to comment Share on other sites More sharing options...
swen Posted March 3, 2015 Share Posted March 3, 2015 Maybe you can try $1 gesture recognizer, it was already implemented by many languages. Quote Link to comment Share on other sites More sharing options...
RaphaelStary Posted March 9, 2015 Share Posted March 9, 2015 I would just code it myself. So you can match any pattern you would like to.I don't know a specific algorithm or stuff like this, but it shouldn't be too hard:you collect a few touch coordinates and then you process them. basically all you need is vector math & geometry knowledge (for advanced pattern recognition)i did some basic stuff years agohttps://github.com/raphaelstary/jacktreasure/blob/master/www/js/input/touchhandler.jshttps://github.com/raphaelstary/jacktreasure/blob/master/www/js/input/touchinterpreter.js Quote Link to comment Share on other sites More sharing options...
ericjbasti Posted March 12, 2015 Share Posted March 12, 2015 I can't tell from your description if this is similar to what you want. https://twitter.com/ericjbasti/status/557256527418261505If so I can give you some tips. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.