Exposure Auto (BCON for MIPI)#
如果要同时使用 Exposure Auto 和 Gain Auto,使用 Auto Function Profile 功能可以指定如何平衡两者效果。
要手动调整曝光时间,请使用 Exposure Time 功能。
该功能的使用#
启用或禁用 Exposure Auto#
要启用或禁用 Exposure Auto 自动功能,请将 ExposureAuto
参数设置为以下操作模式之一:- Continuous
:相机在采集图像的同时连续调整曝光时间。- Off
:禁用 Exposure Auto 自动功能。曝光时间采用上次自动或手动调整后的值并保持不变。
信息
- 在 daA2500-60mc 相机上,启用或禁用 Exposure Auto 时,也会同时启用或禁用 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);
您还可以使用 pylon Viewer 轻松设置参数。