Project

General

Profile

How to adjust the camera exposure time?

Added by xiang zhang about 2 years ago

In order to adjust the camera exposure time. I add the code in the picture to main.cpp. Recompile and run demo_app. But the brightness of the image does not change. How can I apply the adjusted exposure time to the camera?
Thank you.

1.PNG (21 KB) 1.PNG

Replies (11)

RE: How to adjust the camera exposure time? - Added by Michael Williamson about 2 years ago

You might dump out all the registers and check if there is an AutoTargetBrightness and make sure that is disabled. Which variant of Basler sensor are you using?

RE: How to adjust the camera exposure time? - Added by xiang zhang about 2 years ago

daA1280-54bm

Yes, I ignored the parameter Autotargetbrightness. Thank you. I'll try again.

If I don't adjust the exposure time. And lower the value of the parameter autotargetbrightness. Can it achieve the same effect as reducing the exposure time?

RE: How to adjust the camera exposure time? - Added by xiang zhang about 2 years ago

Michael Williamson wrote in RE: How to adjust the camera exposure time?:

You might dump out all the registers and check if there is an AutoTargetBrightness and make sure that is disabled. Which variant of Basler sensor are you using?

How should I dump out all the registers? I deleted the AutoTargetBrightness.But still not.

RE: How to adjust the camera exposure time? - Added by xiang zhang about 2 years ago

xiang zhang wrote in RE: How to adjust the camera exposure time?:

Michael Williamson wrote in RE: How to adjust the camera exposure time?:

You might dump out all the registers and check if there is an AutoTargetBrightness and make sure that is disabled. Which variant of Basler sensor are you using?

How should I dump out all the registers? I deleted the AutoTargetBrightness.But still not.

Hello, how should I dump out all the registers? Is there any relevant explanation?
Thank you.

RE: How to adjust the camera exposure time? - Added by Michael Williamson about 2 years ago

Use the model.dump() function.

RE: How to adjust the camera exposure time? - Added by xiang zhang about 2 years ago

Where can I find this function?

RE: How to adjust the camera exposure time? - Added by xiang zhang about 2 years ago

What exactly should I do to apply the exposure time to the camera. I don't quite understand what you mean.

RE: How to adjust the camera exposure time? - Added by Michael Williamson about 2 years ago

Hi Xiang,

This camera is a product from Basler, using their provided ARM based Pylon SDK. We integrated their code into the MitySOM-5CSX demonstration kit to show how to bring the dart camera link signals into the MitySOM-5CSX FPGA. If you need specific instruction as to how to use the Basler Dart camera and API, you may need to contact them directly.

It would seem that disabling the AutoTargetBrightness feature and ExposureAuto modes would allow you to set the exposure time programmatically. These features, and their control, are governed by the Basler camera and Pylon APIs, neither of which we have detailed knowledge of.

I was suggesting you dump out the camera registers to ensure that the commands you were setting to disable auto exposure and set the exposure time were being honored (e.g., read back what you wrote and make sure that you are actually controlling the correct camera - in the case of dual cameras - properly).

I don't have a unit set up here to support you further, it may take a couple days for me to get something set up. Until then you may need to contact Basler.

With warm regards,
Mike

RE: How to adjust the camera exposure time? - Added by xiang zhang about 2 years ago

Hi Mike,

Thank you for your answer.

You mean that the setting of parameter AutoTargetBrightness in the main file is supported by Basler developers. In fact, you don't know how to set the parameters of the camera for the time being. So I need to contact the Basler developer for help.

RE: How to adjust the camera exposure time? - Added by xiang zhang about 2 years ago

I can't reach the developers of Basler. Can you ask me how to adjust the exposure time of the camera?
I will wait for your reply.

    (1-11/11)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)