This piece of application is a union of CodeProject articles:
Thanks to the authors of these articles. Below is what this app does:
Working in artificial lighted, lifted ceiling, ice air conditioned IT office departments gives me a creepy feeling of being manipulated and watched from behind. Any way one should support it behind. That is why I tried to write this application. But it can also be used for alerting when there is a motion in a special area.
App uses the optimized motion detection algorithm by Andrew to alert (beep), jumps pixels defined by the user.
Put your camera where suitable and by green rectangle, point where any motion will be rejected for measure, also highly sensitive area by red rectangle. App beeps when overall motion is higher than the sensitivity.
Change the below lines if you want to do something different in MotionDetector3Optimized.cs:
if (MainForm.vulRatio>0 && (diffCounter>(height*width/(100/MainForm.vulRatio ))))
Change the below lines if you want to process only sensitive area in MotionDetector3Optimized.cs:
if ((j > ns1 && j < ns2) && (i > ns3 && i < ns4))
currentFrameDilatated[k] = 0;
How to do it is your puzzle. ;)
- 30th March, 2007: Initial post