Image Acquisition with the uEye image queue in .NET C#

Avoiding image loss (C#)

This sample shows the basic idea of continuously capturing images using the uEye image queue. A ring image buffer system is used to capture a 1-second-video.

Using the image queue, the oldest buffer can always be fetched. The image buffer is automatically locked. After sucessfully processing the image data, the buffer is unlocked and put back into the queue to be re-used.

Collecting the image buffers is done in a detached worker thread. This thread is independent of the GUI interaction and allows collecting images without being interrupted.