Why is the Usb Webcam not working on linux?

I have the Intel RealSense D435i depth camera. I tried using it on my windows 10 and matlab successfully detected the camera nad I was able to run the WebcamInLoop program given in matlab. But when I try using the same program with the same camera on Ubuntu OS, matlab is not detecting the camera. It gives different error such as,
1) mycam=webcam(2)
Error using webcam (line 116)
Error starting the webcam stream.
2) Sometimes it also gives the error, "Time out occured while trying to get a frame from the webcam".
3)Moreover, when I use the webcamlist command to view the number of devices connected, I see the same device name three times,
webcamlist
ans =
3×1 cell array
{'Intel(R) RealSense(TM) Depth Ca'}
{'Intel(R) RealSense(TM) Depth Ca'}
{'Intel(R) RealSense(TM) Depth Ca'}
This was not the case when I was using windows, I could see all three devices name i.e. laptop webcam, intel RGB camera and Intel Depth camera.
4) Also if I select the first camera, It shows only one resolution option i.e. 1920 x 1080, however, in windows, it had many options for resolution.
I have already installed Matlab USB Webcam support package and Image Acquisition toolbox. My operating system is ubuntu 16.04 LTS. I am using matlab 2019a. On windows I was using matlab 2018b.
I cannot figure out what the problem is when running the camera on linux through matlab.

3 Comments

Hello, have you got a solution for problem number (4)?
because I have the same problem.
Was this ever resolved? I'm having the same issue with a d435.
No I dont think it has been resolved. I have been having this issue from months...

Sign in to comment.

Answers (0)

Products

Release

R2019a

Asked:

on 3 Jun 2019

Commented:

on 22 Mar 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!