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
Multi motion detection? (Read 1263 times)
Multi motion detection?
Aug 7th, 2009, 1:50am
 
Hi,
I'm just wondering if it's possible to divide captured video for few areas, to get diffrent values from diffrent part of screen during motion detection.
(sorry for my englisch) Smiley
Thanks.
Re: Multi motion detection?
Reply #1 - Aug 10th, 2009, 2:35pm
 
sure, i do it quite often.

i don't know how your code bt i suppose that, to detect motion, you do something like
- remember the old frame
- for x=0 to width and y=0 to height check for differences
- if difference is found do something (like color the moved pixel and/or store/increment a variable...)

if you want to look for movement in a cropped area instead of the full screen, you simply need to make a for cycle for every cropped area:

for x=crop_horizontal_orgin to crop_width and y=crop_vertical_origin to crop_height

ecc...
Re: Multi motion detection?
Reply #2 - Aug 11th, 2009, 1:47am
 
Thank you, i solved my problem//
Greetings.
Page Index Toggle Pages: 1