Web detected by showing error while fetching data
조회 수: 2 (최근 30일)
이전 댓글 표시
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
Oliver
2014년 3월 12일
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?
답변 (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!