콘텐츠로 바로 가기
스테이징 서버
개발 서버

Exposure Auto (dart E)#

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

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

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

Using the Feature#

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

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

  • Continuous: 이미지가 획득되는 동안 카메라는 지속적으로 exposure time을 조절합니다.
  • Off: Exposure Auto 자동 기능을 비활성화합니다. exposure time은 마지막 자동 또는 수동 조절에서 산출된 값으로 유지됩니다.

정보

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

상한값 지정#

정보

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

자동 기능은 사용자가 지정한 한계 내에서 ExposureTime 지정된 한계 내에서 파라미터 값.

상한값을 변경하려면 다음을 설정하십시오. AutoExposureTimeUpperLimit 파라미터를 원하는 값(µs 단위)으로 설정합니다.

자동 조절 과정 동안 노출 시간은 지정된 한계값을 초과하지 않습니다.

상한값을 높게 설정하면 카메라의 프레임 레이트가 낮아질 수 있습니다.

타겟 밝기 값 지정#

정보

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

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

목표 값을 지정하려면 AutoTargetBrightness parameter를 사용하십시오.

정보

  • 목표 값 계산에는 Gamma와 같은 다른 이미지 최적화가 포함되지 않습니다. 설정된 이미지 최적화에 따라 카메라가 출력하는 이미지의 평균 회색조 값은 목표 값으로 표시된 값보다 현저히 낮거나 높을 수 있습니다.
  • 카메라는 또한 다음 항목을 사용합니다. AutoTargetBrightness 매개변수를 사용하여 다음을 제어합니다. Gain Auto 자동 기능입니다. Exposure Auto를 사용하려면 Gain Auto 을(를) 동시에 사용하려면 Auto Function Profile 기능을 사용하여 두 기능의 효과가 균형을 이루는 방식을 지정하십시오.

Sample Code#

// 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"

pylon Viewer를 사용하여 파라미터를 손쉽게 설정할 수도 있습니다.