mabl / PyPylon

An experimental python wrapper around the Basler Pylon 5 library
BSD 3-Clause "New" or "Revised" License
53 stars 34 forks source link

cam.grab_images() buffer #25

Open aaronshifman opened 7 years ago

aaronshifman commented 7 years ago

On a similar vein to #14 I'm trying to do something real time. I've noticed that there is a very smooth output but there is ~3 second lag almost like a buffer of sorts.

I can eliminate it by re initializing grab_images constantly but that significantly drops the frame rate.

Am I missing some switch or setting regarding some sort of buffer?

Thanks, Aaron

RichardLangFromNZ commented 7 years ago

If you take a look at my as yet unmerged PR (https://github.com/mabl/PyPylon/pull/23) I've exposed configuration of different grab strategies. Have a read up in the Basler docs. then give a LatestImageOnly grab strategy a go.