i want to detect if a human is running or not in real time using cam . how can i do it...???

want to design a real time video surveillance system that alerts whenever some one runs in-front of it...plx help me guys,.. what procedure should i adopt???? if u can provide some code then it 'll be a great help, but the procedure or method too will be lot helpfull.

3 Comments

What if they are jogging instead of running? Or if they are power-walking?
considering all these cases same...can i detect any fast movement by monitoring velocity of centroid points of the moving objects, and setting a threshold value ???
As usual I want to mention, that this is very easy to solve for a human. I'm in doubt, that there can be a very reliable automatic recognition, which can compete with a crowd of 5 year old kids running fast in the game of tag. So why bothering Matlab?

Sign in to comment.

 Accepted Answer

these few steps shows how can you achieve that 1. acquire images using getsnapshot at high frame rate. 2. compare the consecutive two images pixel by pixel. 3. if same,covert to black (logic 0) otherwise to white. now number of white pixels show amount of movement and, if camera is in close proximity to the runner then number white are very large. 4.do step 1,2,3 until number of white pixels increase some threshold.

1 Comment

thnx for responding to my question...can u plx explain the following line? "if camera is in close proximity to the runner then number white are very large". how will it differentiate between running and walking??

Sign in to comment.

More Answers (1)

There are lots of tracking demos on the web site. Search for "tracking" at Mathworks.com.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!