How can I process a live video feed in in Simulink?

4 views (last 30 days)
I would like to process 30 frames/second, 12-bit color, 640x480 resolution video input. The processing would include applying a filter (2D Convolution or 2D FFT) to each frame, contrast stretching, and/or histogram equalization.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 28 Nov 2016
There are two relatively simple options to import live video feed for processing.
1) The Video Input block under the Image Acquisition toolbox can be used to capture live video input. This block is based on ActiveX and supports code generation. l
2) Another alternative is to use DM642 EVM Video ADC block in Embedded Targets for Texas Instruments TMS320C6000™ DSP. For more information on this block refer to the following link:
<http://www.mathworks.com/help/releases/R2016a/supportpkg/texasinstrumentsc6000/ug/dm642evmvideoadc.html>
However processing, displaying or saving high resolution, high frame rate video is computationally intensive. Therefore performance is dependant on the complexity of the model and the hardware available.
For a given set of model and hardware limitations, it is still possible to achieve faster processing speed by optimizing the following parameters:
• Frame rate
• Resolution
• Video format
• Data types (Avoid datatype conversions. Use memory efficient datatypes in accelerated mode.)

More Answers (0)

Community Treasure Hunt

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

Start Hunting!