02-26-2023 07:45 PM
Hiya, This is a fairly general question, but I have a camera (FLIR Blackfly S) and I am using the example IMAQdx programs to capture video, and also to capture still images. Is it possible to use to capture both simultaneously from the same video stream?
For example, could I watch vision on my front panel and start recording using a control at a set time to then save that video as an AVI, but also save a high res jpeg say every 5 seconds? How would the Grab manage this?
02-27-2023 03:11 AM
> For example, could I watch vision on my front panel and start recording using a control at a set time to then save that video as an AVI, but also save a high res jpeg say every 5 seconds? How would the Grab manage this?
Note that you can't change settings when you are in Grab mode so "AVI" and "jpeg" images should be the same resolution for best performance.
My suggestion:
- A Grab Loop that continuously gathers images
- In the Grab Loop set a Boolean flag that specifies if the current image should be saved as a jpeg
- Queue each image plus flag to a consumer loop
- Consumer loop builds and saves the AVI file and saves the jpeg when needed