Image and Video Processing
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
| V4L2 Video Capture | Capture video from USB camera using V4L2 framework |
| SDL Video Display | Display video using SDL |
| RTSP Video Stream Transmit | Stream video to network over real-time streaming protocol (Since R2024a) |
| RTSP Video Stream Receive | Receive video from network over real-time streaming protocol (Since R2024b) |
Objects
arducam | Connect to ArduCam Multi Camera Adapter Module (Since R2023b) |
webcam | Create connection to Raspberry Pi web camera |
cameraboard | Connection to camera board on Raspberry Pi hardware |
Functions
selectCamera | Select camera on ArduCam Multi Camera Module (Since R2023b) |
readFrame | Return oldest image frame from board, web, or ArduCam module camera |
record | Record video from camera board or ArduCam Multi Camera Adapter Module camera |
snapshot | Capture latest RGB image frame from Camera Board or selected camera on ArduCam Multi Camera Adapter Module |
stop | Stop recording from camera board or selected camera on ArduCam Multi Camera Adapter Module |
displayImage | Display an image on the Raspberry Pi hardware or on the LED Matrix of SenseHAT |
Apps
| Raspberry Pi Resource Monitor App | Monitor and manage Raspberry Pi resources |
Topics
- Modularize Installation of Third-Party Packages and Libraries for Raspberry Pi Hardware
This section describes the workflow for downloading the core and optional application-based libraries and packages.
- Use Raspberry Pi Web Camera to Capture Images
Use the Raspberry Pi web camera to capture images.
- Use Raspberry Pi Camera Board to Capture Images and Video
This example shows how to create a connection to the Camera Board, capture still images, and record video.
- Raspberry Pi Web Camera
Raspberry Pi web camera.
- Raspberry Pi Camera Board
Raspberry Pi camera board.
- Use Raspberry Pi Camera Board for Bookworm Raspbian Linux Operating System
Workaround steps to use Raspberry Pi camera board for Bookworm operating system.
Troubleshooting
Troubleshoot Raspberry Pi Camera Board
Troubleshoot the Raspberry Pi camera board.















