Detect Changes from a Video

Detects changes (movements, colour changes) from a video through frame-to-frame comparison.
790 Downloads
Updated 30 May 2013

View License

This script detects changes from a video by comparing each frame of the video into a reference frame, which in this script is defined as the first frame of the input video file. If no changes occur in the video, the resulting comparison frame will only contain zero values, i.e., the frame is black. If changes do occur, these are then shown with white colour in the resulting video. The results are shown in Matlab's Movie Player and, in addition, the resulting video is written into an avi-file.

Note that a prerequisite for using this script is Matlab's Image Processing Toolbox.

Computation for large video files will be time consuming...

Cite As

Jussi Mattila (2024). Detect Changes from a Video (https://www.mathworks.com/matlabcentral/fileexchange/42017-detect-changes-from-a-video), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0