콘텐츠로 바로 가기
STAGING SERVER
DEVELOPMENT SERVER

Test Patterns (dart E)#

Test Patterns camera feature를 사용하면 카메라의 기본 기능과 이미지 전송 기능을 확인할 수 있습니다.

Test patterns는 유지 관리 및 고장 진단 목적으로 사용할 수 있습니다. 이 패턴들은 카메라 자체에서 생성되므로, 카메라의 광학계와 이미지 센서는 생성 과정에 관여하지 않습니다.

기능 사용#

Test Patterns 표시#

테스트 패턴을 표시하려면:

  1. 다음 항목을 설정하여 테스트 패턴을 선택합니다. TestPattern 원하는 테스트 이미지로 parameter를 설정합니다.
  2. 선택한 테스트 패턴을 표시하려면 이미지를 하나 이상 획득하십시오. pylon Viewer에서 테스트 패턴을 표시하려면 도구 모음에서 단일 촬영 또는 연속 촬영 버튼을 클릭하십시오.

샘플 코드#

// Select test image 1
camera.TestPattern.SetValue(TestImageSelector_Testimage1);
// Acquire images to display the selected test image
// ...
// (Insert your own image grabbing routine here.
// For example, the InstantCamera class provides the StartGrabbing method.)
INodeMap& nodemap = camera.GetNodeMap();
// Select test image 1
CEnumParameter(nodemap, "TestPattern").SetValue("Testimage1");
// Acquire images to display the selected test image
// ...
// (Insert your own image grabbing routine here.
// For example, the InstantCamera class provides the StartGrabbing method.)
// Select test image 1
camera.Parameters[PLCamera.TestPattern].SetValue(PLCamera.TestImageSelector.Testimage1);
// Acquire images to display the selected test image
// ...
// (Insert your own image grabbing routine here.
// For example, the InstantCamera class provides the StartGrabbing method.)
/* 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 */
/* Select test image 1 */
errRes = PylonDeviceFeatureFromString(hdev, "TestPattern", "Testimage1");
CHECK(errRes);
/* Acquire images to display the selected test image */
/* ... */
/* (Insert your own image grabbing routine here. */
/* For example, the InstantCamera class provides the StartGrabbing method.) */
# Select test image 1
camera.TestPattern.Value = "Testimage1"
# Acquire images to display the selected test image
# ...
# (Insert your own image grabbing routine here.
# For example, the InstantCamera class provides the StartGrabbing method.)
/* 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 */
/* Select test image 1 */
errRes = PylonDeviceFeatureFromString(hdev, "TestPattern", "Testimage1");
CHECK(errRes);
/* Acquire images to display the selected test image */
/* ... */
/* (Insert your own image grabbing routine here. */
/* For example, the InstantCamera class provides the StartGrabbing method.) */

pylon Viewer를 사용하여 매개변수를 간편하게 설정할 수도 있습니다.