genicam / harvesters

Image Acquisition Library for GenICam-based Machine Vision System
Apache License 2.0
502 stars 86 forks source link

Fetch_buffer locks program if camera uses external trigger #304

Closed MasIgor closed 2 years ago

MasIgor commented 2 years ago

Hi all,

I would need to run the camera with a external trigger. so far all ok, managed to do so. but while the camera is in aquisition, until when the trigger arrives, the whole program is locked.

Is it possible to run harvester ona different thread to avoid locking all up?

thank you!

best regards

kazunarikudo commented 2 years ago

Hi, you can run the image acquisition thread by calling as follows:

ia.start_acquisition(run_in_background=True)

It does not block other threads. Regards, Kazunari.

MasIgor commented 2 years ago

thank you!

kazunarikudo commented 2 years ago

Hi Igor, please feel free to close this ticket if you can confirm the issue has been resolved. Thanks.