Running Image Acquisition toolbox in MATLAB 2013a on Ubuntu 12.04?

Hi,
Seeking help for using Webcam with image acquisition toolbox of MATLAB 2013a on UBUNTU 12.04.
My laptop webcam is working perfectly fine with Cheese and Video4linux control panel softwares. I have tested webcam with QT v4l2 utility and found it working which mean webcam is compatible with MATLAB, as per MATLAB requirements of Video4Linux2. When I use MATLAB 2013a image acquisition App it gives error on pressing preview or start acquisition button on GUI " could not connect to image acquisition device, Device may be in use ". I have used lsof /dev/video0 but no other device is using my webcam. I have tried the following code
vid = videoinput('linuxvideo', 1, 'YUYV_320x240');
preview(vid)
I am able to capture from same webcam in MATLAB 2013a on Win7 platform but not on ubuntu 12.04.
Can any body tell me where is the problem? or what I am doing wrong?
Regards,

Answers (2)

I am facing same same problem. Can anyone help Thank you
I am facing same same problem. Can anyone help Thank you

Asked:

on 18 Dec 2013

Answered:

on 2 Feb 2019

Community Treasure Hunt

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

Start Hunting!