V4L2 Video Capture
Capture video from USB camera using V4L2 framework
Add-On Required: This feature requires the Embedded Coder Support Package for BeagleBone Black Hardware add-on.
Libraries:
Embedded Coder Support Package for BeagleBone Black Hardware
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
Sometimes, when you connect a USB webcam to the BeagleBone® Black hardware that was running, the BeagleBone Black hardware does not recognize the USB webcam. To verify that the BeagleBone Black hardware recognizes the USB webcam, in the Command Window, enter:
bbone = beaglebone_black; system(bbone,'ls -al /dev/videox')
If the board recognizes the USB camera, this command returns the name of the video device associated with the USB camera. Otherwise, restart the BeagleBone Black hardware. After restarting, if the BeagleBone Black hardware does not recognize the USB webcam, is possible that the webcam is not a supported device. Try using a different USB webcam.
Ports
Output
Parameters
Version History
Introduced in R2014b