Problems Acquiring Images from USB Webcam
Afficher commentaires plus anciens
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.
Réponses (1)
Trong Nguyen Thanh
le 17 Oct 2017
0 votes
1 commentaire
Trong Nguyen Thanh
le 17 Oct 2017
Type " Imaqhwinfo"
Catégories
En savoir plus sur Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!