We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › optical flow
Page Index Toggle Pages: 1
optical flow (Read 754 times)
optical flow
Feb 6th, 2010, 9:53pm
 
Newbie here ---needs help with optical flow
how to pass/simulate mousemoved or mousepressed with optical flow
detection?

thanks
Re: optical flow
Reply #1 - Feb 7th, 2010, 5:56am
 
personally I make the objects I want to interact with "sensible" to optical flow: ie. I fit the grid of my optical flow on the portion of the screen occupied by the object i want to move. this way i obtain  what you could call a "mousemoved" effect, as I can drag and/or rotate stuff. (look here to see what i mean).

for the "mousepressed" thing maybe optical flow alone is not the best tool as it can't guess gestures. the easiest thing to do is to make your interface in such a way that it doesn't need mouse clicks (personally I make draggable buttons etc.)
Re: optical flow
Reply #2 - Feb 8th, 2010, 11:46am
 
Thank naus3a for your quick reply.
I am trying to do some interactivity with webcam --i will try jmryon
webcam mouse library
Page Index Toggle Pages: 1