How can I use a USB webcam on Ubuntu linux 64-bit with MATLAB R2014b?

조회 수: 3 (최근 30일)
Luigi
Luigi 2014년 11월 28일
답변: Pascal Heinrich 2015년 1월 19일
Hi,
I can't use the Image Acquisition toolbox on Ubuntu linux 64-bit with MATLAB R2014b because I received this error:
'Error using imaqdevice/preview (line 176) Could not connect to the image acquisition device. Device may be in use.'
I have already installed the OS Generic Video Interface and the webcam works fine with 'cheese'.
Thanks

답변 (2개)

Giorgos Papakonstantinou
Giorgos Papakonstantinou 2015년 1월 9일
I have exactly the same problem with the same configuration (Check a similar post here ). I have not found a solution yet. Some relevant information can be found here.
I have tried to run matlab from the terminal like this:
LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l2convert.so matlab
or
LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so matlab
which gives me the following error:
ld.so: object '/usr/lib/i386-linux-gnu/libv4l/v4l2convert.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored
Consequently, I have not managed to solve the problem and get my camera working with matlab.
Did you finally fix it? I would appreciate if you have any info.
Thank you

Pascal Heinrich
Pascal Heinrich 2015년 1월 19일
Hey,
sadly I have to say that I have not managed to work it on my machine but you have to figure out if your cam is supported by the uvc driver
My cam is supported but the problem remains the same :(
Also I have tried to start matlab as root (maybe permission problems) without luck.
Any further ideas?
Thank you

Community Treasure Hunt

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

Start Hunting!

Translated by