using webcam instead of an avi file ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi i am new to Matlab and i've been trying to edit this example Right Here to detect multiple objects and its working great but i'm trying to edit it to use my laptop camera instead of an avi video ? i know i can use this code to read from my camera
vidobj = imaq.VideoDevice('winvideo', 1);
but i didn't know how to edit it, can someone please help?
0 Kommentare
Antworten (1)
Caglar
am 2 Nov. 2018
Bearbeitet: Caglar
am 2 Nov. 2018
camera = webcam;
pictures{1}=camera.snapshot;
while true %well end it some point
pictures{end+1}=camera.snapshot;
image( picture{end}); %if you want to watch
drawnow; %if you want to watch
end
clear('camera');
pictures will be a cell array of snapshots. dont forget to preallocate pictures array.
Siehe auch
Kategorien
Mehr zu MATLAB Support Package for IP Cameras finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!