basler / pypylon

The official python wrapper for the pylon Camera Software Suite
http://www.baslerweb.com
BSD 3-Clause "New" or "Revised" License
558 stars 207 forks source link

How to get the actual ExposureTime in AutoExposreTime mode? #390

Open assafzam opened 3 years ago

assafzam commented 3 years ago

How can I get for each image, the actual exposure time that the image was taking with?

I set Auto Exposure time , and Auto Gain, With the minimize gain option, and I'm grabbing images in different lights. There is a way to get this information from the grabResult object?

thiesmoeller commented 3 years ago

Depending on your camera model you can use:

https://docs.baslerweb.com/data-chunks#enabling-and-retrieving-data-chunks

This feature will add metadata to the image frame which is accessible via grabResult.

See https://github.com/basler/pypylon/blob/master/samples/grabchunkimage.py as an example