Main Content

Image and Video Processing

R2026b
Capture, display, and stream images and video on Raspberry Pi® hardware

Acquire images and video from camera modules or webcams, display video output, and stream video using blocks and MATLAB® functions to support development of a wide range of multimedia applications, including, computer vision, and surveillance on Raspberry Pi hardware.

Blocks

Raspberry Pi camera module connected via the CSI interfaceRaspberry Pi CameraCapture live video from Raspberry Pi CSI camera module (Since R2026b)
Raspberry Pi V4L2 Video Capture block iconV4L2 Video CaptureCapture video from USB camera using V4L2 framework
SDL Video Display blockSDL Video DisplayDisplay video using SDL
Raspberry Pi RTSP Video Stream Transmit Block IconRTSP Video Stream TransmitStream video to network over real-time streaming protocol (Since R2024a)
Raspberry Pi Video Stream Transmit Block IconRTSP Video Stream ReceiveReceive video from network over real-time streaming protocol (Since R2024b)

Objects

arducamConnect to ArduCam Multi Camera Adapter Module (Since R2023b)
webcamCreate connection to Raspberry Pi web camera
cameraboardConnection to camera board on Raspberry Pi hardware

Functions

selectCamera Select camera on ArduCam Multi Camera Module (Since R2023b)
readFrameReturn oldest image frame from board, web, or ArduCam module camera
recordRecord video from camera board or ArduCam Multi Camera Adapter Module camera
snapshotCapture latest RGB image frame from Camera Board or selected camera on ArduCam Multi Camera Adapter Module
stopStop recording from camera board or selected camera on ArduCam Multi Camera Adapter Module
displayImageDisplay an image on the Raspberry Pi hardware or on the LED Matrix of SenseHAT

Apps

Raspberry Pi Resource Monitor AppMonitor and manage Raspberry Pi resources

Topics

Troubleshooting

Troubleshoot Raspberry Pi Camera Board

Troubleshoot the Raspberry Pi camera board.

Featured Examples