V4L2 Video Capture
Capture video from USB camera using V4L2 framework
Add-On Required: This feature requires the Simulink Support Package for Raspberry Pi Hardware add-on.
Libraries:
Simulink Support Package for Raspberry Pi Hardware /
Audio and Video
Description
The V4L2 Video Capture block enables you to capture live video from a USB video camera using the Video for Linux Two API (V4L2) driver framework. During simulation, the block outputs a moving colorbar image.
The debian Linux® image on Raspberry Pi® hardware supports video capture from USB cameras compliant with the USB video class (UVC) specification. In addition to being a UVC compliant camera, the camera itself should also support data acquisition in the YUYV mode.
The following cameras have been tested with the V4L2 Video Capture block but is not limited to:
Logitech QuickCam Pro 9000
Logitech QuickCam Pro 3000
Logitech Webcam C600
Logitech HD Webcam C310
The V4L2 Video Capture block supports the Raspberry Pi camera board for these Raspbian Linux operating systems running on your Raspberry Pi board: Buster and Bullseye. For more information on how to use the Raspberry Pi camera board for the Bookworm Raspbian Linux operating system, see Use Raspberry Pi Camera Board for Bookworm Raspbian Linux Operating System.
Ports
Output
Parameters
Version History
Introduced in R2013a
See Also
SDL Video Display | RTSP Video Stream Transmit | RTSP Video Stream Receive | Raspberry Pi Resource Monitor App | Use Raspberry Pi Camera Board for Bookworm Raspbian Linux Operating System
Topics
- Build Surveillance Camera Using Android and Raspberry Pi
- Implement Image Inversion Algorithm Using Raspberry Pi
- Stream Images from Raspberry Pi Using Robot Operating System
- Recognize Handwritten Digits Zero to Nine Using MNIST Data Set on Raspberry Pi Hardware
- Configure Image and Device Properties of Raspberry Pi V4L2 Video Capture Block to Detect Objects
- Stream Video over Network Using Raspberry Pi Video Stream Transmit Block
- Receive Video Over Network Using Raspberry Pi Video Stream Receive Block