Info

This question is closed. Reopen it to edit or answer.

troubleshoot webcam connection using preview(cam)

1 view (last 30 days)
NKakon
NKakon on 4 Apr 2016
Closed: MATLAB Answer Bot on 20 Aug 2021
I'm trying to get a video feed from a webcam, and I've been using
cam=webcam(1); %webcam(1) is the webcam I want to connect to, found with webcamlist
preview(cam);
but all that comes up is a black screen. When I try the same thing with my computer's cam it works fine. I've made sure the webcam works with software I have on my computer. Any ideas what could be wrong?

Answers (0)

Community Treasure Hunt

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

Start Hunting!