Controlling the frame rate of a image acquisition program in MATLAB.
显示 更早的评论
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
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 GigE Vision Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!