跳转到内容

Exposure Auto (BCON for MIPI)#

相机的 Exposure Auto 功能会自动在指定限值内调整曝光时间,直到达到目标亮度为止。

如果要同时使用 Exposure Auto 和 Gain Auto,使用 Auto Function Profile 功能可以指定如何平衡两者效果。

要手动调整曝光时间,请使用 Exposure Time 功能。

该功能的使用#

启用或禁用 Exposure Auto#

To enable or disable the Exposure Auto auto function, set the ExposureAuto parameter to one of the following operating modes: - Continuous: The camera adjusts the exposure time continuously while images are being acquired. - Off: Disables the Exposure Auto auto function. The exposure time remains at the value resulting from the last automatic or manual adjustment.

信息

  • On daA2500-60mc cameras, enabling or disabling Exposure Auto also enables or disables Gain Auto.
  • 当相机连续拍摄图像时,自动功能会在经过较短的延迟后生效。前几张图像可能不受自动功能的影响。

示例代码#

// Enable Exposure Auto by setting the operating mode to Continuous
camera.ExposureAuto.SetValue(ExposureAuto_Continuous);
// Enable Exposure Auto by setting the operating mode to Continuous
CEnumParameter(nodemap, "ExposureAuto").SetValue("Continuous");
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Enable Exposure Auto by setting the operating mode to Continuous */
errRes = PylonDeviceFeatureFromString(hdev, "ExposureAuto", "Continuous");
CHECK(errRes);

You can also use the pylon Viewer to easily set the parameters.