basler / pypylon

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

Switch between exposure modes automatically and manually #457

Open sangyookim opened 2 years ago

sangyookim commented 2 years ago

Dear.

I'm using the latest a2A3840-45ucPRO model. I want to convert exposure automatically and manually based on Python.

I changed it to auto and manual through the 'PYLON VIEWER', and observed the exposure time change with the code below in python. How can I change the exposure mode inside the python app, not in the pylon viewer?

I can't find the information. Please help.


camera.Open() camera.ExposureTime.SetValue(1000) camera.Close()

thiesmoeller commented 2 years ago

@sangyookim ,

For an overall info of how pypylon works and how to find features and their properties please check also the companion repository:

https://github.com/basler/pypylon-samples

In the pylon viewer you can add a window with documentation. ( Enable it from the menu )

There is always a short C++ snippet available to show you the names you search for.

And we have excellent docs e.g. at https://docs.baslerweb.com/exposure-auto#sample-code

Only difference is enumeration values. So instead of ExposureAuto_Continuous write "Continuous"