フィルターのクリア

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
  1 件のコメント
Dilip Kunderu
Dilip Kunderu 2019 年 1 月 16 日
What is the model of the camera module being used ? Which videoinput adapter are you using ?

サインインしてコメントする。

回答 (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
Walter Roberson
Walter Roberson 2019 年 1 月 21 日
flushdata() looks like a good way to remove old frames.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by