Image Acquisition Toolbox 3.4
Live Image Acquisition and Histogram Display
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 the Logitech® Quickcam® Zoom webcam into Simulink. This demo uses the 2-D Histogram block in Video and Image Processing Blockset™ to calculate the histograms of R, G, and B values in each video frame.
This demo requires Simulink, and Video and Image Processing Blockset to open and run the model.
Contents
Watch histogram display on live video stream. (10 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 winvideo image acquisition device (Logitech Quickcam Zoom). In this demo, the block acquires RGB frames from the Logitech camera and outputs them into the Simulink model at every simulation time step. The data type output from the block is uint8.
Histogram Display Results
The demo displays the histograms of R, G, and B values in the RGB Histogram window and displays the original RGB video in the viewer window.
Even though a winvideo Logitech webcam 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