How to detect motion at particular position in image

asked 2014-01-29 13:16:58 -0500

jjoshi gravatar image

updated 2014-01-29 13:18:53 -0500

I want to create method which can detect motion within the particularly specified circle rather than whole frame of the video. i used one black circle how can i detect motion within this circle if it is applied on a captured video kindly help.
I have tried to draw an example below, where square represents the captured frame and the circle is the area in which motion or any movement to be detected

                  |            |------ Captured frame 
                  |      O-----|------ Circle if some movement occurred, detected   


edit retag flag offensive close merge delete


Crop to your region of interest for motion. Do a subtraction with the previous frame's ROI. See if the resulting difference is above some threshold for motion. Feel free to post some starter code to be critiqued.

mechiris gravatar imagemechiris ( 2014-02-09 00:15:40 -0500 )edit