Click here to Skip to main content
15,885,216 members
Articles / Programming Languages / Visual Basic

Area Based Motion Detection- Boss Watcher

Rate me:
Please Sign up or sign in to vote.
3.00/5 (11 votes)
29 Mar 2007CPOL 54.9K   3K   54   5
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

Introduction

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.

Background

App uses the optimized motion detection algorithm by Andrew to alert (beep), jumps pixels defined by the user.

Usage

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.

Advices

Change the below lines if you want to do something different in MotionDetector3Optimized.cs:

C#
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:

C#
if ((j > ns1 && j < ns2) && (i > ns3 && i < ns4))
{
currentFrameDilatated[k] = 0;
}

How to do it is your puzzle. ;)

History

  • 30th March, 2007: Initial post

License

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


Written By
Web Developer
Turkey Turkey
Mikail Çetinkaya

E-mail : mikailcetinkaya@yahoo.com

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

University
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,VB.net,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 www.tuketicigazetesi.com (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

Comments and Discussions

 
QuestionProblem with specified area in motionDetector4 Pin
Hardghost10-Oct-11 3:46
Hardghost10-Oct-11 3:46 
AnswerRe: Problem with specified area in motionDetector4 Pin
mikailcetinkaya10-Oct-11 11:53
mikailcetinkaya10-Oct-11 11:53 
GeneralLicensing Pin
Trollslayer8-Jan-11 2:38
mentorTrollslayer8-Jan-11 2:38 
GeneralThe sizable control ..... Pin
Member 46937875-Oct-08 20:35
Member 46937875-Oct-08 20:35 
GeneralI love it Pin
MathiasW21-Aug-07 0:56
MathiasW21-Aug-07 0: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.