Hi,
I am trying to display an image captured from my webcam. I am using matlab version 8.1.0.604 (R2013a) on Ubuntu 12.04.
Here is my very simple code:
imaqhwinfocam1=imaqhwinfo('linuxvideo',1);vid1=videoinput('linuxvideo',1);% cam1.SupportedFormats
preview(vid1);
which produces this error:
InstalledAdaptors: {'dcam' 'gentl' 'gige' 'linuxvideo'} MATLABVersion: '8.1 (R2013a)' ToolboxName: 'Image Acquisition Toolbox' ToolboxVersion: '4.5 (R2013a)'Warning: Unable to set the selected source. Perhaps the device isin use. Error using imaqdevice/preview (line 177)Could not connect to the image acquisition device. Device may bein use.Error in main (line 58)preview(vid1);
My webcam is a Logitech C270, which works fine with other applications eg. Skype.
Any help in understanding the cause of this error would be greatly appreciated!
Thanks,
Mark
Best Answer