User manual

Small Vision System User Manual 52
5.4 Single Capture
In single capture mode, the program requests a single stereo pair, and then waits until it is
delivered. The sequence of function calls is svsVideoGrabSingle - svsVideoWaitImage
svsVideoGetImage. As in continuous capture, the frame size and digitization parameters are
downloaded to the camera hardware before the acquisition.
int svsVideoGrabSingle(svsSP *sp)
Requests a single stereo pair be captured. The video device(s) must already have been
opened with svsVideoOpen. svsVideoWaitSingle can be used to check if the stereo
pair is ready.
Returns 0 if successful, -1 if not. The biggest reason for an unsuccessful return (other than
the camera not being opened) is that the frame size parameters are inconsistent. Use
svsVideoCheckParams to verify the consistency of the parameters.