跳至內容
測試伺服器
開發伺服器

Flare Removal (dart E)#

當相機對準強光源時,所拍攝的照片可能會包含鏡頭眩光偽影。Flare Removal 自動功能可讓您移除這些偽影。

使用功能#

若要啟用或停用眩光移除,請將 BslFlareRemovalAuto 參數設為下列其中一個 Operating Mode:

  • Continuous:相機在擷取影像時會持續移除鏡頭眩光偽影。
  • Off:停用 Flare Removal 自動功能。

範例程式碼#

// 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 輕鬆設定參數。