Acquisition Toolbox. How can I acquired photo at specific frequency 1 Hz at camera time exposure 1 ms

2 次查看(过去 30 天)
Hi. I'm actually facing a problem with acquired image with the Image Acquisition Toolbox. I need to acquired image at a specific frequency of 10 Hz and 12 Hz on a moving object. In order to have a clear image the camera time exposure need to be at 1 ms. I've try a bunch of things (TriggerFcn, FrameAcquiredFcn, while loop) to realize that as soon you start(vid) the acquisition the process start acquired image as fast as posiible and I do not know how to specify the acquisition frequency. Anybody have faced this problem? Any solutin in mind?
Thanks for the help.
Denis

回答(2 个)

Denis Perrone
Denis Perrone 2019-1-16
Hi Dilip.
I'm using Basler Ace acA4112-30um camera. My videoinput adapter is 'gentl'. I was able to solve my problem by writing my codes to acquired frames outside the vid.FramesAcquiredFct and using cell variable instead of using a 4th dimension matrice, Frame(:,:,1,i). One of my problems was that the execution time to put the frames into the variable was to long, around 600 ms.
However I'm still open to learn if there are other ways to accomplish this task.
Thanks,
Denis

Denis Perrone
Denis Perrone 2019-1-16
Walter,
Here are what is showing:
frameRates = get(src, 'AcquisitionFrameRate')
frameRates =
28.9998
frameRates = get(src, 'ResultingFrameRate')
frameRates =
29.4638
  7 个评论
Denis Perrone
Denis Perrone 2019-1-21
Thanks Walter. Very pertinent comments. I'll have to look to my code in order to make sure that there are any frames accumulating in the buffer. Regarding peeking faster then captured frames I made sure to not go faster than 16 Hz since my camera maximum frames rates is 30 frames/s. Do you think I can use flushdata(vid) onces a while to clear the buffer?
Denis

请先登录,再进行评论。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by