For my application, I want to use the image aquisition toolbox (with the NI Frame Grabber Support) to save images of fast moving objects taken by a high speed camera. These should be processed (recognition of object size and position using regionprops command)
The camara is recording with ~ 1000 fps, recording time min. 10 min.
The approaches I thought on:
Plan 1: Use shapshot function (https://de.mathworks.com/help/imaq/examples/acquiring-a-single-image-in-a-loop.html) in a loop, process image and only store required information (output from regionprops) in a cell.
Problem 1.1: Camera will be faster than loop and I need the high frame rate. Any ideas how to still get all informations?
Plan 2: Use imaqtool to create and save video, read in video later.
Problem 2.1: How to stop aquisition if video is "full"? (e.g: Maximal file size and size per frame- how do I get this? Or is there an automated possiblity?)
Problem 2.2: How can I set the framerate constant? (I need the object velocity so time interval between frames is important- when testing the image aquisition toolbox with my normal webcam, I had set the framerate to 30 but the shown framerate in the toolbox was 30 – 40. I need the framerate to be constant or at least the time stamp for each frame to calculate the error)
Thanks for your help! 🙂
Best Answer