I'm trying to make a program which tracks the amount of movement in a certain area through a webcam.Currently I've got the amount of movement occurring on the entire screen. Now I would like to track the movement in, let's say a rectangle of 200 by 200 pixels in the bottom right of the screen.
I've tried using a for loop, but since this loop just counts the pixels from left to right, top to bottom this would not give me the square area I'd like to track.