Webcam cannot be initialized properly.
Ältere Kommentare anzeigen
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 Kommentare
chen
am 5 Jan. 2025
Umar
am 5 Jan. 2025
Hi @Chen,
Please click the link below to help resolve your issue.
Contact MathWorks and Use the webcamSupport Function
Hope this helps.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Raspberry Pi Hardware finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!