WebCam Alarm

by Alexandru Lungu 19. October 2010 12:26


Almost a year ago I had to make a small project for school in which to work with either images or sound or video (or altogether).

I chose to create something more interesting: a webcam alarm. It should work like this: if you’re away and something goes in front of the camera, then there is an intruder (unless it’s your cat Smile) and an alarm must be raised.

The main settings:

Frames ahead (or behind) – The number of frames that will pass before comparing the changes with the current frame. (for example comparing the 10th frame behind with the current frame). This is to detect if someone is moving extremely slow.
Sensitivity – How much must change before starting the alarm (ex: 0.05 – 5% - if more than sensitivity of the image has changed from the frames ahead then the alarm starts.
If the difference between the current frame and the frames ahead is above sensitivity then the alarm is started.

The attached solution has 2 projects: the client, which is the main application that uses the camera and starts the alarm and the server which the client informs about the intruder: it is just concept – my server just logs the info – but it can be extended to do more: notify the police, send the owner a SMS, etc.

Download WebCam Alarm.zip (621.69 kb)

Tags: , ,


Comments (4) -

George Romania
10/20/2010 2:22:46 PM #

Wow, this is really useful. I can transform my laptop in an alarm.

allex Romania
10/20/2010 4:15:18 PM #

Yes, the laptop I also had in mind.
But it is far from being an efficient product against intruders until you connect it to the police or to a security company, or to call you or send an SMS or MMS with the pictures/videos taken when the alarm started.

George Romania
10/20/2010 7:08:29 PM #

There is no need for all that. I'll set the sound to max and only the sound of an alarm will make the thief run away.

allex Romania
10/20/2010 7:13:06 PM #

Yes, I guess that bluffing is also a solution Smile.

Add comment

  Country flag
  • Comment
  • Preview

Powered by BlogEngine.NET
Original Design by Laptop Geek, Adapted by onesoft