With the help of Matlab a program is developed, based on image processing and correlation concept, to capture an image from the camera whenever a deflection in the view is detected and accordingly the security system is alerted through an alarm or storing the image or sending it via e-mail/ LAN.