How to Reduce the time of capturing image
Ältere Kommentare anzeigen
Here is my code for capturing image
vid=videoinput('winvideo',1);
vid.Framespertrigger=1;
start(vid)
im=getdata(vid);
imagename=('C:\Program Files\MATLAB\R2013a\bin\test.tif');
imwrite(im,imagename);
stop(vid);
This code is taking around 2 seconds to capture one image,but the camera frame rate specifies it is 15 frames/sec,Is it possible to capture 15 images per second or even close to it? If so what modification I should make in this code, Please help me..Thank you
Akzeptierte Antwort
Weitere Antworten (1)
Anchit Dhar
am 13 Nov. 2014
Bearbeitet: Anchit Dhar
am 13 Nov. 2014
0 Stimmen
Starting/Initializing the camera takes up some time. Starting/Stopping for each frame can slow down your application considerably. In order to capture frames at a higher frame rate, you can start the camera once and then use 'manual triggering' to grab the frames in a loop. The following example describes this method.
As an alternate solution, you can use the WEBCAM interface (introduced in R2014a).
Kategorien
Mehr zu GigE Vision Hardware finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!