vipliveedgedetection
Open this model

# Edge Detection Using Live Video Acquisition

This demo uses the From Video Device block provided by Image Acquisition Toolbox™ to acquire live image data from a Hamamatsu C8484 camera into Simulink®. The Prewitt method is applied to find the edges of objects in the input video stream.

Image Acquisition Toolbox provides functions for acquiring images and video directly into MATLAB® and Simulink from PC-compatible imaging hardware. You can detect hardware automatically, configure hardware properties, preview an acquisition, and acquire images and video.

This demo requires Image Acquisition Toolbox and Hamamatsu image acquisition device (C8484) to run the model.

## Contents

- Demo Model
- Live Video Input
- Edge Detection Analysis
- Available Demo Versions

Watch edge detection using live video acquisition. (4 seconds)

## Demo Model

The following figure shows the demo model using the From Video Device block.

## Live Video Input

The demo acquires the input video live from a Hamamatsu image acquisition device (C8484). In this demo, the block acquires intensity data from the camera and outputs it into the Simulink model at every simulation time step.

## Edge Detection Analysis

This demo uses Computer Vision System Toolbox™ to find the edges of objects in the video input. When you run the model, you can double-click the Edge Detection block and adjust the threshold parameter while the simulation is running. The higher you make the threshold, the smaller the amount of edges the demo finds in the video stream.

Even though a Hamamatsu camera was used for this demo, you can update this model to use other supported image acquisition devices. This enables you to use the same Simulink model with different image acquisition hardware.

## Available Demo Versions

Floating-point versions of this demo:

Windows® only: vipliveedgedetection_win.mdl (using live video acquisition)

Windows only: vipedge_win.mdl (using stored video data)

Platform independent: vipedge_all.mdl

Fixed-point versions of this demo:

Windows only: vipedge_fixpt_win.mdl

Platform independent: vipedge_fixpt_all.mdl

Windows-only demo models contain To Video Display block and From Video Device block, which are only supported on Windows platforms.