I am trying to save an image from a camera that has a trigger pin. We wish to use this to sync 2 or more cameras together being saved on 2 separate computers eventually scaling it up to 6+ camera & computer setups (to avoid USB bottlenecks).
We can use programs like QTCam to wait for the image to arrive and save it, but this program is large and is semi-buggy and we don't really have any way of remotely controlling the software and with multiple slave computers this isn't practical. What we are looking for is something like VideoCapture.retrieve() where the description is that is retrieves the next grabbed frame. Since the VideoCapture.grab() function essentially requests a frame taken.
When we call VideoCapture.retrieve() it does indeed get the frame from the last time VideoCapture.grab() was called, but if we call VideoCapture.retrieve() multiple times to see if it would pick up the triggered frames, it seems to instead call grab() again if it doesn't detect a frame in the buffer. (we tested this using a slow 1 second pulse on the camera trigger and instead of waiting, it updates as fast as it can)
If this isn't possible, does anyone have any suggestions?