Well, this is the bit i was dreading, gesture recognition... recognizing the beat patterns the user is making and changing the music accordingly...*shudders*.
Well actually it turned out to take five minutes thanks to this little doozy of a recognition class. Gesture Recognition
Thank you Didier Brun aka Foxy, for making that open source, you just saved me a weeks work :D
Okay, so to understand how it works have a read through that blog link above...but essentially... it tracks the starting point, direction and ending point of a gesture.
In my case, where the user is moving the conductors baton...
I have not got it functioning the way I want yet as I am still designing the Conductors Baton, but essentially I am using three basic patterns and when using the mouse it worked fine.
To switch it over to the IR position simply put I made the mouse cursor hidden and matched it's coordinates to the IR position...it worked so I plan to have a more stable version running in the next couple of days :D
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment