Intruder Detection and Recording

Intruder detection and recording with live video and audio display.
Updated 1 Sep 2016

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This Intruder Detection example shows how the Image Acquisition and Data Acquisition Toolboxes can be used together.
This program displays live video and audio data acquired from a web cam and sound card. Whenever certain motion or sound thresholds are exceeded, an alarm will sound while the video and audio data are recorded to disk for 10 seconds.

Cite As

David Leffingwell (2024). Intruder Detection and Recording (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: IMAQMOTION - Image acquisition motion detection

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Updated license

Generated the alarm.wav file using MATLAB's wavwrite command.

Shorten the length of the audible alarm so that it doesn't trigger a new alarm in some cases.