Click here to Skip to main content
12,816,219 members (31,994 online)
Click here to Skip to main content
Add your own
alternative version


55 bookmarked
Posted 29 Mar 2007

Area Based Motion Detection- Boss Watcher

, 29 Mar 2007 CPOL
Rate this:
Please Sign up or sign in to vote.
Detect and alert according to predefined areas in motion pictures - Alert when somebody passes the door, etc.

This piece of application is a union of CodeProject articles:

Motion detection Algorithms Andrew Kirillov
Owner Drawn Resizable control Ray Cassick

Thanks to the authors of these articles. Below is what this app does:

Screenshot - article3.jpg


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 ))))
System.Media.SystemSounds.Beep.Play() ;

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


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Web Developer
Turkey Turkey
Mikail Çetinkaya

E-mail :

Education : University (Graduate)
Experience : 3 Year(s)
Working Status : Employed
Driving License : B (2004)
Military Service : Done-18.05.2004

01.10.1999 - 01.06.2003 Yildiz Technical University
Electric – Electronic Department, Computer Engineering 3,23 / 4

High School
01.06.1999 Selçuk Anadolu Lisesi
Fen 4,75 / 5

06.2005- Prosis Bilgi İşlem Danışmanlık
Analist Programcı İstanbul
Leader Programmer for Banking Applications working in Batch, Online or interactive • Developing Credit card Package for ABank,Universalbank,UKH,ŞekerBank,DışBank,Asya Finance. Using VB,,C# on Windows Platform. • Participating in MasterCard IPM transition project • Participating in Online Authorisation project as leader programmer. • Participating in BKM DatawareHouse project as leader programmer. • IPM and Visa Clearing Management Interfaces

04.2003-05.2004 Tuketici Gazetesi
Yazılım Geliştirme Uzmanı İstanbul
Taking part in many important projects with C# and .NET , my actual achievements are : Development of a Sms gateway for msg 2 notice processing Development of a pop3 client and server for automatic notice and notification services Development and administration of Tuketici information systems Development and administration of (dynamic site of Tüketici newspaper for fee based notices)

05.2002-04.2003 Remak
Software Development Assistant Manager İstanbul
I have taken part in development of Information System for Tuzla Municipality

Foreign Languages English

You may also be interested in...


Comments and Discussions

QuestionProblem with specified area in motionDetector4 Pin
Hardghost10-Oct-11 4:46
memberHardghost10-Oct-11 4:46 
AnswerRe: Problem with specified area in motionDetector4 Pin
mikailcetinkaya10-Oct-11 12:53
membermikailcetinkaya10-Oct-11 12:53 
GeneralLicensing Pin
Trollslayer8-Jan-11 3:38
mentorTrollslayer8-Jan-11 3:38 
GeneralThe sizable control ..... Pin
Member 46937875-Oct-08 21:35
memberMember 46937875-Oct-08 21:35 
GeneralI love it Pin
MathiasW21-Aug-07 1:56
memberMathiasW21-Aug-07 1:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170308.1 | Last Updated 30 Mar 2007
Article Copyright 2007 by mikailcetinkaya
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid