Controlling the frame rate of a image acquisition program in MATLAB.
Mostra commenti meno recenti
vid = videoinput('winvideo', 1, 'RGB24_320x240'); %select input device
hvpc = vision.VideoPlayer; %create video player object
src = getselectedsource(vid);
vid.FramesPerTrigger =1;
vid.TriggerRepeat = Inf;
vid.ReturnedColorspace = 'rgb';
src.FrameRate = '30';
start(vid)
%start main loop for image acquisition
for t=1:500
imgO=getdata(vid,1,'uint8'); %get image from camera
hvpc.step(imgO); %see current image in player
end
Alright, so I got this code from some place from a guy named Jorge. I went in and put my codes into my codes to have the high frame per second so that the video acquisition of my program will be faster. However, I have encountered some problems:

What does this means and how do I solve this problem? Thank you very much.
Regards,
Akira
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!