콘텐츠로 건너뛰기
STAGING SERVER
DEVELOPMENT SERVER

Exposure Auto (dart E)#

Exposure Auto camera feature는 지정된 한계 내에서 exposure time을 자동으로 조정하여 목표 밝기에 도달하도록 합니다.

Exposure Auto와 Gain Auto를 동시에 사용하려면 Auto Function Profile 기능을 사용하여 두 기능의 효과가 균형을 이루는 방식을 지정하십시오.

exposure time을 수동으로 조정하려면 Exposure Time 기능을 사용하십시오.

기능 사용법#

Exposure Auto 활성화 또는 비활성화#

Exposure Auto 자동 기능을 활성화 또는 비활성화하려면 다음을 설정하십시오. ExposureAuto 매개변수를 다음 Operating Mode 중 하나로 설정합니다.

  • Continuous: 카메라가 이미지를 획득하는 동안 exposure time을 연속적으로 조정합니다.
  • Off: Exposure Auto 자동 기능을 비활성화합니다. exposure time은 마지막 자동 또는 수동 조정으로 인해 발생한 값으로 유지됩니다.

정보

  • daA2500-60mc 카메라에서는 Exposure Auto를 활성화 또는 비활성화하면 Gain Auto도 함께 활성화 또는 비활성화됩니다.
  • 카메라가 이미지를 연속적으로 캡처할 때 자동 기능은 약간의 지연과 함께 적용됩니다. 처음 몇 장의 이미지는 자동 기능의 영향을 받지 않을 수 있습니다.

상한값 지정#

정보

이 기능은 daA…mci 카메라에서만 사용할 수 있습니다.

자동 기능은 ExposureTime 매개변수 값을 지정된 한계 내에서 조정합니다.

상한값을 변경하려면 다음을 설정하십시오. AutoExposureTimeUpperLimit 매개변수를 원하는 값(µs)으로 설정합니다.

자동 조정 과정에서 exposure time은 지정된 한계값을 초과하지 않습니다.

상한값이 높은 값으로 설정된 경우 카메라의 프레임 레이트가 감소할 수 있습니다.

목표 밝기 값 지정#

정보

이 기능은 daA…mci 카메라에서만 사용할 수 있습니다.

자동 기능은 목표 밝기 값(즉, 평균 회색 값)에 도달할 때까지 exposure time을 조정합니다.

목표 값을 지정하려면 다음을 사용하십시오. AutoTargetBrightness 파라미터.

정보

  • 목표 값 계산에는 Gamma와 같은 다른 이미지 최적화가 포함되지 않습니다. 설정된 이미지 최적화에 따라 카메라에서 출력되는 이미지의 평균 회색 값은 목표 값보다 현저히 낮거나 높을 수 있습니다.
  • 카메라는 또한 다음을 사용합니다. AutoTargetBrightness 매개변수를 사용하여 다음을 제어합니다. Gain Auto auto function. If you want to use Exposure Auto and Gain Auto at the same time, use the Auto Function Profile feature to specify how the effects of both are balanced.

샘플 코드#

// Set the Exposure Auto auto function to its maximum upper limit
double maxUpperLimit = camera.AutoExposureTimeUpperLimit.GetMax();
camera.AutoExposureTimeUpperLimit.SetValue(maxUpperLimit);
// Set the target brightness value to 0.6
camera.AutoTargetBrightness.SetValue(0.6);
// Enable Exposure Auto by setting the operating mode to Continuous
camera.ExposureAuto.SetValue(ExposureAuto_Continuous);
INodeMap& nodemap = camera.GetNodeMap();
// Set the Exposure Auto auto function to its maximum upper limit
double maxUpperLimit = CFloatParameter(nodemap, "AutoExposureTimeUpperLimit").GetMax();
CFloatParameter(nodemap, "AutoExposureTimeUpperLimit").SetValue(maxUpperLimit);
// Set the target brightness value to 0.6
CFloatParameter(nodemap, "AutoTargetBrightness").SetValue(0.6);
// Enable Exposure Auto by setting the operating mode to Continuous
CEnumParameter(nodemap, "ExposureAuto").SetValue("Continuous");
// Set the Exposure Auto auto function to its maximum upper limit
double maxUpperLimit = camera.Parameters[PLCamera.AutoExposureTimeUpperLimit].GetMaximum();
camera.Parameters[PLCamera.AutoExposureTimeUpperLimit].SetValue(maxUpperLimit);
// Set the target brightness value to 0.6
camera.Parameters[PLCamera.AutoTargetBrightness].SetValue(0.6);
// Enable Exposure Auto by setting the operating mode to Continuous
camera.Parameters[PLCamera.ExposureAuto].SetValue(PLCamera.ExposureAuto.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 */
double maxUpperLimit = 0;
/* Set the Exposure Auto auto function to its maximum upper limit */
errRes = PylonDeviceGetFloatFeatureMax(hdev, "AutoExposureTimeUpperLimit", &maxUpperLimit);
CHECK(errRes);
errRes = PylonDeviceSetFloatFeature(hdev, "AutoExposureTimeUpperLimit", maxUpperLimit);
CHECK(errRes);
/* Set the target brightness value to 0.6 */
errRes = PylonDeviceSetFloatFeature(hdev, "AutoTargetBrightness", 0.6);
CHECK(errRes);
/* Enable Exposure Auto by setting the operating mode to Continuous */
errRes = PylonDeviceFeatureFromString(hdev, "ExposureAuto", "Continuous");
CHECK(errRes);
# Set the Exposure Auto auto function to its maximum upper limit
maxUpperLimit = camera.AutoExposureTimeUpperLimit.Max
camera.AutoExposureTimeUpperLimit.Value = maxUpperLimit
# Set the target brightness value to 0.6
camera.AutoTargetBrightness.Value = 0.6
# Enable Exposure Auto by setting the operating mode to Continuous
camera.ExposureAuto.Value = "Continuous"

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