Webcam cannot be initialized properly.
显示 更早的评论
Hello guys,
I would like to use a machine vision camera (usb3.0 cable) to connect the raspberry 4B for a machine vision projects with simulink, the machine vision camera has its own SDK, which has been done in the raspberry pi. Then, I used the v4l2loopback to create a virtual webcam into the point-/dev/video0. After all, I tested it use the command- "r=raspi; w=webcam(r)" to test the connection between the machine vision camera on raspberry pi and matlab, but I got an error at below:
r=raspi
r =
raspi with properties:
DeviceAddress: '192.168.137.208'
Port: 18734
BoardName: 'Raspberry Pi 2 Model B'
AvailableLEDs: {'led0'}
AvailableDigitalPins: [4,5,6,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]
AvailableSPIChannels: {'CE0','CE1'}
AvailableI2CBuses: {'i2c-1'}
AvailableWebcams: {'HT VirtualCam (platform:v4l2loopback-000)'}
I2CBusSpeed: 100000
AvailableCANInterfaces: {}
Supported peripherals
>> w=webcam(r)
Webcam cannot be initialized properly. Please check if the device HT VirtualCam (platform:v4l2loopback-000) is available and free to use.
Could someone can help me about how to make a non-stardard USB camera to be detected by matlab?
Thank you very much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2 个评论
chen
2025-1-5
Umar
2025-1-5
Hi @Chen,
Please click the link below to help resolve your issue.
Contact MathWorks and Use the webcamSupport Function
Hope this helps.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Raspberry Pi Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!