Web detected by showing error while fetching data

1 view (last 30 days)
I am trying to interface a camera in linux 64 bit machine. It is working fine with all application, hangout, skype and opencv.
The same webcam is working well in 32 bit machine and matlab.
During the experiment, no application is using webcam.
But in matlab it is giving errors. Errors are
1.
>> preview(obj)
Warning: Unable to reset the crop area. Perhaps the device is in use. Error using imaqdevice/preview (line 177) Could not connect to the image acquisition device. Device may be in use.
2.
>> start(obj)
Warning: Unable to reset the crop area. Perhaps the device is in use. Error event occurred at 17:48:31 for video input object: YUYV_640x480-linuxvideo-1. Could not connect to the image acquisition device. Device may be in use. Could not connect to the image acquisition device. Device may be in use.
3.
>> img = getsnapshot(obj)
Warning: Unable to reset the crop area. Perhaps the device is in use. Error using imaqdevice/getsnapshot (line 72) Could not connect to the image acquisition device. Device may be in use.
Webcam details are
~$ lsusb
Bus 002 Device 003: ID 0c45:6340 Microdia
It is iBall webcam.
>> ver
MATLAB Version: 8.1.0.604 (R2013a) MATLAB License Number: •••••• Operating System: Linux 3.8.0-32-generic #47~precise1-Ubuntu SMP Wed Oct 2 16:19:35 UTC 2013 x86_64 Java Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot™ 64-Bit Server VM mixed mode
I tried googling for a few hours, but nobody has mentioned any solution. Tried restarting too.
  3 Comments
Jemshid
Jemshid on 12 Nov 2013
Edited: Jemshid on 12 Nov 2013
No. There are no applications using webcam. I am sure. I tested the webcam on my friend's machine, which has matlab 64 bit running on xbuntu. Webcam is working fine on my friend's system.
Xubuntu has a different version of linux kernel.
Oliver
Oliver on 12 Mar 2014
I'm facing the same problem on openSUSE 12.3 after a Kernel update from Linux 3.7 to 3.13. With 3.7 everything works fine. With 3.13 I get exactly the same error messages in Matlab as Jemshid, but all other applications don't have any problems. Any suggestions?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!