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.
Page Index Toggle Pages: 1
Open CV frame differencing (Read 846 times)
Open CV frame differencing
Nov 20th, 2009, 6:59am
 
Hi,

I have got face detection moving an object on screen. But I also want to say:

over a certain amount of movement - do something

I have done this already with frame differencing, but wondered how you might do it in Open CV using pixel differences onscreen (frame differencing) as the cause of movement. The reason I wouldn't want to do it with face detection alone is that I want general movement to be measured too and not just when it picks up the face?

Has anyone done this?

Thanks
Re: Open CV frame differencing
Reply #1 - Nov 21st, 2009, 4:07am
 
Hi,

Since posting I have tried to put openCV blob detection with face recognition in the same applet. This works. But blob detection is in general not great at giving a general quantity of movement as i tends to flickr about and a small movement can cause the computer to think it's moved more than it has.

The really basic Golan Levin frame differencing example in the processing examples section is really really effective, but can not be incorporated. Is there an openCV getpixels function. I have tried:

opencv.pixels()
(as it states in the documentation, but this doesn't appear to work).

Any ideas?

Thanks
Page Index Toggle Pages: 1