Skip to Main Content Skip to Search
Home |   Select Country  Choose Country  |  Contact Us  |  Cart Store 
Create Account | Log In
Products & Services Solutions Academia Support User Community Company
spacer spacer spacer spacer spacer spacer

Embedded MATLAB Demos

Explore this MATLAB language subset for embedded implementation

Abandoned Object Detection

This demo tracks objects at a train station and determines which ones remain stationary. Abandoned objects in public areas concern authorities since they might pose a security risk. Algorithms, such as the one used in this demo, can be used to assist security officers monitoring live surveillance video by directing their attention to a potential area of interest.

This demo illustrates how to use the Blob Analysis and Embedded MATLAB™ blocks to design a custom tracking algorithm. The demo implements this algorithm using the following steps: 1) Eliminate video areas that are unlikely to contain abandoned objects by extracting a region of interest (ROI). 2) Perform video segmentation using background subtraction. 3) Calculate object statistics using the Blob Analysis block. 4) Track objects based on their area and centroid statistics. 5) Visualize the results.

Watch the Abandoned Object Detection demo.

Contents

Demo Model

The following figure shows the Abandoned Object Detection demo model.

Store Background Subsystem

This demo uses the first frame of the video as the background. To improve accuracy, the demo uses both intensity and color information for the background subtraction operation. During this operation, Cb and Cr color channels are stored in a complex array.

If you are designing a professional surveillance system, you should implement a more sophisticated segmentation algorithm.

Detect Subsystem

The Detect subsystem contains the main algorithm. Inside this subsystem, the Luminance Segmentation and Color Segmentation subsystems perform background subtraction using the intensity and color data. The demo combines these two segmentation results using a binary OR operator. The Blob Analysis block computes statistics of the objects present in the scene.

Abandoned Object Tracker subsystem, shown below, uses the object statistics to determine which objects are stationary. To view the contents of this subsystem, right-click the subsystem and select Look Under Mask. To view the tracking algorithm details, double-click the Abandoned Object Tracker (EML) block. The Embedded MATLAB M-code in this block is an example of how to implement your custom code to augment Video and Image Processing Blockset™ functionality.

Abandoned Object Detection Results

The All Objects window marks the region of interest (ROI) with a yellow box and all detected objects with green boxes.

The Threshold window shows the result of the background subtraction in the ROI.

The Abandoned Objects window highlights the abandoned objects with a red box.

Contact sales
E-mail this page