Image Acquisition Toolbox 3.4
Edge Detection on Live Video Stream
Image Acquisition Toolbox™ provides a Simulink® block to acquire live image data from image acquisition devices into Simulink models.
This demo uses the From Video Device block 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.
This demo requires Simulink, and Video and Image Processing Blockset to open and run the model.
Contents
Watch edge detection on live video. (9 seconds)
Demo Model
The following figure shows the demo model using the From Video Device block.
Live Video Input
The input video is acquired 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. The data type output from the block is single.
Edge Detection Analysis
This demo uses Video and Image Processing Blockset™ 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, this model can be easily updated to connect your models to other supported image acquisition devices. This provides you the flexibility to use the same Simulink model with different image acquisition hardware.
Store