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!