Main Content

Video Input

This example shows how to get video data from system video devices. The example model uses a system camera device to provide video input, for example a standard USB video class device (webcam).

When you run the simulation, the model uses signal generator output to control the region-of-interest (ROI) from the camera that is displayed on the Video Viewer block.

For more information about video input or setting up a system camera device, see the Video Input block.

Run Model in Connected IO Mode

  1. To switch to Connected IO mode if needed, on the Desktop Real-Time tab, select Mode > Run in Connected IO mode.

  2. To start the real-time execution, on the Desktop Real-Time tab, click Run in Real-Time.

Run Model in Run in Kernel Mode

  1. To switch to Run in Kernel mode if needed, on the Desktop Real-Time tab, select Mode > Run in Kernel mode.

  2. To start the real-time execution, on the Desktop Real-Time tab, click Run in Real-Time.

Open the Model

These commands open the model and suppress any warnings about a board not installed.

open_system('sldrtex_videoroi');

Clean Up Model

bdclose('all');
Warning: Method 'onBlockDelete' is not defined for class
'vipscopes.VideoViewerBlock' or is removed from MATLAB's search path. 

See Also