跳转到内容

Flare Removal (dart E)#

当相机对准强光源时,拍出的照片可能会出现镜头眩光伪影。“眩光消除”自动功能可让您消除这些伪影。

该功能的使用#

要启用或禁用眩光消除功能,请将 BslFlareRemovalAuto 参数设置为以下工作模式:

  • Continuous:相机会在采集图像时持续消除镜头眩光伪影。
  • Off:禁用“眩光消除”自动功能。

示例代码#

// Enable Flare Removal by setting the operating mode to Continuous
camera.BslFlareRemovalAuto.SetValue(BslFlareRemovalAuto_Continuous);
INodeMap& nodemap = camera.GetNodeMap();
// Enable Flare Removal by setting the operating mode to Continuous
CEnumParameter(nodemap, "BslFlareRemovalAuto").SetValue("Continuous");
// Enable Flare Removal by setting the operating mode to Continuous
camera.Parameters[PLCamera.BslFlareRemovalAuto].SetValue(PLCamera.BslFlareRemovalAuto.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 Flare Removal by setting the operating mode to Continuous */
errRes = PylonDeviceFeatureFromString(hdev, "BslFlareRemovalAuto", "Continuous");
CHECK(errRes);
# Enable Flare Removal by setting the operating mode to Continuous
camera.BslFlareRemovalAuto.Value = "Continuous"

您还可以使用 pylon Viewer 轻松设置参数。