Problems Acquiring Images from USB Webcam
4 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
See Also
Categories
Find more on Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!