Why am I getting a green screen while previewing an object made using videoinput but it works when previewing an object using webcam function?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to capture a video from a logitech HD pro webcam C920. When I preview the camera after creating an object called cam, it works prefectly:
cam = webcam(1)
preview(cam)
% image comes up, works as it should
But when I create an object using the 'videoinput' command, previewing that object just returns a green screen:
vobj = videoinput('winvideo', '1')
preview(vobj)
% no image except a green screen with a band of white noise at the top
I am using Matlab 2018a (it is the latest version compatible with some NI devices I am using)
Thank you.
0 Kommentare
Antworten (1)
Anshika Chaurasia
am 3 Mär. 2021
Hi Kosta,
Refer to following discussion which is related to the similar issues as mentioned by you:
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Preview and Device Configuration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!