Recognising a certain gesture

Jul 1, 2013 at 11:08am

Recognising a certain gesture

Hi guys

I posted a while back about recognising a significant movement (gesture) and everyone was really helpful.

I now have a similar question regarding a gesture that is specifically right to left. Is the best method of recognising this gesture to monitor velocity? Or should it be a combination of monitoring gesture velocity and gesture position?

Or is it something completely different?

All the best

Joe Gornall

#254641
Jul 1, 2013 at 1:18pm

Hi

it would depend entirely on what kind of data you’re getting (noise-level, resolution etc) but the simplest method for me would be to subtract a previous value from the current, then a positive result means decreasing input/numbers, and vice-versa:

<code>

– Pasted Max Patch, click to expand. –

</code>

But you said as much in your question :)
Brendan

#254665
Jul 1, 2013 at 1:23pm

ooops

just saw the related thread you mentioned; the above patch doesn’t really add anything new to the solution I posted there : {

#254666
Jul 1, 2013 at 3:04pm

With that patch you posted, can it be changed to only toggle on when the movement is really fast and the distance is about 50% of the scale?

Does that make sense?

All the best

J

#254676
Jul 2, 2013 at 5:39am

You’ll have to judge for yourself what constitutes “50%” as you haven’t given us any specific environment variables, but you can set a threshold like this:

<code>

– Pasted Max Patch, click to expand. –

</code>

Brendan

#254726
Jul 2, 2013 at 9:50am

HI JOE

“I posted a while back about recognising a significant movement (gesture) “
—> could you tell me where your post is please.
Thanks so much

Denis

#254747
Jul 2, 2013 at 11:10am

denis – http://cycling74.com/forums/topic/understanding-numerical-patterns/#post-254376

n00b, sorry I was being a bit unclear. I am getting a constant stream of x&y coordinates, but I am trying to get a bang when the velocity (which I have now set thanks to your addition to the patch) and the distance (ie the x coordinates which ranges from 0 – 320) is “significant”. By that I mean the numbers for the x-coordinates quickly changes from a number like 300. to 30..

Does that make it any clearer or am I just talking nonsense

All the best,

J

#254756
Jul 2, 2013 at 11:40am

Thank you JOE, it’s kind of you

Denis

#254758

You must be logged in to reply to this topic.