MATLAB Answers

1

Webcam issues on linux

Asked by Anthony Schenck on 24 Apr 2019
Latest activity Commented on by Wyatt Verchere on 14 Sep 2019 at 0:28
Hi,
I'm having problems trying to connect a usb webcam to matlab using linux (manjaro). I have used the same camera under windows without issue so I figure it should be supported?
Steps taken so far:
  • installed Matlab support package for USB webcams
  • installed Image Acquisition toolbox support package for OS Generic video interface
  • Installed cheese: works with the integrated webcam, not sure how to switch input device here
  • Tested with VLC: usb webcam works properly
  • Tested with Guvcview: usb webcam works properly
Running webcamlist and imaqhwinfo show the following output:
>> webcamlist
ans =
0×0 empty cell array
>> imaqhwinfo
ans =
struct with fields:
InstalledAdaptors: {'linuxvideo'}
MATLABVersion: '9.6 (R2019a)'
ToolboxName: 'Image Acquisition Toolbox'
ToolboxVersion: '6.0 (R2019a)'
>> imaqhwinfo('linuxvideo')
No devices were detected for the 'linuxvideo' adaptor. For troubleshooting device detection issues, click here.
ans =
struct with fields:
AdaptorDllName: '/home/.../MATLAB/SupportPackages/R2019a/toolbox/imaq/supportpackages/genericvideo/adaptor/glnxa64/mwlinuxvideoimaq.so'
AdaptorDllVersion: '6.0 (R2019a)'
AdaptorName: 'linuxvideo'
DeviceIDs: {1×0 cell}
DeviceInfo: [1×0 struct]
If anyone has additional suggestions I would love to hear them!
Cheers.
*Edit: running cheese with $LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so cheese allows me to switch to the USB camera, and it is working there aswell.

  2 Comments

I have absolute same problem. and did not found any solution till now
Wyatt Verchere on 14 Sep 2019 at 0:28
I'm also having exactly this same problem. Sad to not see a response yet- seems to be some kind of issue with matlab for linux?
Same code, same camera works perfectly on the windows version, and it displays totally a-OK on every other linux program (cheese, guvcview, etc etc).

Sign in to comment.

Products


Release

R2019a

0 Answers