Main Content

Video Capture

Capture video from input video device and send to algorithm

Since R2021a

  • Video Capture block

Libraries:
SoC Blockset / Processor I/O

Description

The Video Capture block simulates behavior of the driver code that captures images from a video device, such as a camera, on your hardware board. The input of this block must be connected to an Video Capture Interface block that simulates a physical video source device on the hardware board. Place this block inside a task and connect it to an algorithm to process an image each time the task executes. For more information on tasks, see Timer-Driven Task and Event-Driven Tasks.

Ports

Input

expand all

This message port receives data messages from a connected Video Capture Interface block. The messages process when the Task Manager block triggers task containing the Video Capture block. For more information on messages, see Messages.

Data Types: SoCData

Output

expand all

This port outputs a height-by-width matrix for that Color component, where the dimensions are the size of the image. The Image size parameter specifies the height and width dimensions.

Dependencies

The Pixel format parameter sets the color component format as either RGB or YCbCr 4:2:2.

Data Types: uint8

Parameters

expand all

Specify the height and width dimensions of the image matrix emitted by the color channel ports of this block. Specify custom to set custom image dimensions.

Specify custom height-by-width dimensions of the image matrix emitted by the color channel ports.

Dependencies

To enable this parameter, set the Image size parameter to custom.

Specify the image data encoding as RGB or YCbCr 4:2:2 triplets.

If used in a timer-driven task, enter the sample time of the task defined in the Task Manager block. If used in the event-driven task, enter -1.

Extended Capabilities

Version History

Introduced in R2021a