Linux webcam driver not connecting

Hi , I have been following some line of codes here in matlab central for capturing an image using 'winvideo' adapter of windows platform . However, since I am ArchLinux my video adapter is 'linuxvideo'. So I went on writing these lines of code:
vid = videoinput('linuxvideo',1); set(vid,'ReturnedColorSpace','RGB');
And after that when I wrote : img = getsnapshot(vid);
It gives me the error:
Warning: Unable to reset the crop area. Perhaps the device is in use. Error using imaqdevice/getsnapshot (line 62) Could not connect to the image acquisition device. Device may be in use.
I have no problem in running a webcam in my linux environment . I am running Cheese program , and it works fine . Is there something I am missing out here . Thanks P.S - I have image capturing toolbox available.

3 commentaires

jianzheng
jianzheng le 9 Oct 2014
The same as me on fedora 20(3.11) & R2014a & MS LifeCam Studio. Any way to solve the problem?
Pascal Heinrich
Pascal Heinrich le 22 Jan 2015
Modifié(e) : Pascal Heinrich le 22 Jan 2015
Same here!
Cheese and kamerka are working fine.
But if I open the cam in matlab i get an error: Device may be in use.
I am using Arch Linux x64 and Matlab R2014b. But same problem on R2013b. I have tried several things and changed the libstdc++.so.6 but without luck.
I am using an Logitech HD cam an the the integrated Thinkpad T420 cam.
Any ideas?
IJ
IJ le 23 Fév 2015
Modifié(e) : IJ le 23 Fév 2015
Same here with my thinkpad T440s + Linux Mint x64 + Matlab R2014a, has anybody managed to find a solution to this?

Connectez-vous pour commenter.

Réponses (0)

Question posée :

le 16 Août 2013

Modifié(e) :

IJ
le 23 Fév 2015

Community Treasure Hunt

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

Start Hunting!

Translated by