How can I use a USB webcam on Ubuntu linux 64-bit with MATLAB R2014b?
조회 수: 3 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (2개)
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
댓글 수: 0
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
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!