Jump to content

Touch pattern recognition


 Share

Recommended Posts

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 :)

Link to comment
Share on other sites

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 ago
https://github.com/raphaelstary/jacktreasure/blob/master/www/js/input/touchhandler.js
https://github.com/raphaelstary/jacktreasure/blob/master/www/js/input/touchinterpreter.js

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...