Problems Acquiring Images from USB Webcam

4 views (last 30 days)
I am trying to acquire images from a USB camera in Matlab2015b. Here is my code:
camera_name = 'USB 2861 Device';
camera = webcam(camera_name);
When I run these commands, Matlab creates the camera object, but it displays the error message:
The camera did not return a frame for this resolution
I tried setting camera.Resolution to one of the 11 resolutions that Matlab said were available, but the same message appeared.
I am using an OOSSXX miniature security camera model model no.osx-101-a36 connected to the StarTech USB S-Video and Composite Audio Capture Cable SVID2USB23 in Windows 7. The camera works with the Free2X Webcam Recorder, so the issue is not with the camera itself. When I try to acquire video in Matlab, I am able to create a webcam object, so Matlab recognizes the camera.
Any help with debugging this error would be greatly appreciated.

Answers (1)

Trong Nguyen Thanh
Trong Nguyen Thanh on 17 Oct 2017
I think you forget to install "OS Generic Video Interface" - Temporary turn off Antivirus software. - Download & Install Driver: “Matlab Support Package for USB Webcams” - Matlab Help: type “webcam” - Install “winvideo” adapter: Imaqhwinfo

Community Treasure Hunt

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

Start Hunting!