Computer Vision System Toolbox™ provides algorithms and tools for video processing. You can:
Read, write, and view multimedia files in a wide range of formats, including AVI, MPEG, and WMV.
Stream video to and from MMS sources over the Internet or a local network.
Acquire video directly from web cameras, frame grabbers, DCAM-compatible cameras, and other imaging devices using Image Acquisition Toolbox™. When using Simulink®, you can use the MATLAB® workspace as a video source or sink.
The Computer Vision System Toolbox, together with Image Processing Toolbox™, enables you to view video streams in the loop as you process data, view any video signal within your code or block diagram, and use multiple video viewers at the same time. You can also freeze the display to evaluate the current frame, display pixel information for a region in the frame, and pan, zoom, start, stop, pause and step through simulations one frame at a time.
|Read Binary File||Read binary video data from files|
|Video From Workspace||Import video signal from MATLAB workspace|
Create a video reader and player objects to read and play a video.
Import a sequence of images from a folder into the MATLAB workspace and display the sequence using the Computer Vision System Toolbox software.
MATLAB and Simulink support network streaming via the Microsoft® MMS protocol (which is also known as the ASF, or advanced streaming format, protocol).
This example shows how to display multiple video streams in a custom graphical user interface (GUI).
This example shows how to automatically detect and track a face in a live video stream, using the KLT algorithm.
In this example, you use the From Multimedia File source block to import a video stream into a Simulink model and the To Video Display sink block to view it.
The Computer Vision System Toolbox blocks enable you to export video data from your Simulink model.
This example displays a sequence of images, which were saved in a folder, and then stored in a variable in the MATLAB workspace.
In this example, you use the To Multimedia File block, the Enabled Subsystem block, and a trigger signal, to save portions of one AVI file to three separate AVI files.
In this example, you use the From Multimedia File blocks to import video and audio streams into a Simulink model.
Import video from the MATLAB workspace.