Main Content

Video Capture MIPI

Import live video frames from MIPI card on Zynq-based system

  • Library:
  • Vision HDL Toolbox Support Package for Xilinx Zynq-Based Hardware

  • Video Capture MIPI block

Description

The Video Capture MIPI block imports video frames from an IMX274 FMC MIPI® card connected to a Zynq®-based board into your Simulink® model. The support package programs the FPGA with an image that demosaics and gamma-corrects the video input from the sensor, and allows capture of the video from Simulink. You can control the frame size and Simulink video signal format options from the Video Capture MIPI block.

The FPGA image also contains an IP core called the FPGA user logic that you can generate from your design by using HDL Workflow Advisor. The block captures the input video after the FPGA user logic.

The video data is in AXI4-Stream Video format on the FPGA. When you capture the video to Simulink, the stream is converted to frame-based video.

The reference design requires the same video resolution and color format for the entire data path. The design you target to the FPGA user logic must not modify the frame size or format of the data.

Ports

Output

expand all

The block returns one matrix for each color component of the input video. The dimensions of each matrix match the frame size.

Dependencies

To enable these ports, set Pixel format to RGB and Image signal to Separate color signals.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | fixed point

The block returns a 3-by-height-by-width matrix, where height and width match the frame size.

Dependencies

To enable this port, set Pixel format to RGB and Image signal to One multidimensional signal.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | fixed point

Parameters

expand all

The video stream originates from the IMX274 camera board. Set the Frame size parameter to match the resolution of your attached camera.

Select 720p HDTV format (1280x720p) or 1080p HDTV format (1920x1080p).

The block sets the Simulink sample time for the captured video frames to 1/Frame rate.

Frame size 1920x1080p supports only 60 fps.

The RGB pixel stream format returns three 8-bit color components per pixel, which is 24 bits per pixel total. You can also select whether the block returns a multidimensional signal or three separate color signals. For details, see the Image signal parameter.

Specify the RGB output stream format as one of these values.

  • Separate color signals — The block returns separate height-by-width matrices for each color component. In this case, the block has R, G, and B output ports.

  • One multidimensional signal — The block returns a single 3-by-height-by-width matrix. In this case, the block has an Image output port.

Version History

Introduced in R2022b