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

消除眩光 (dart E)#

當相機對準強光源時,拍攝出的照片可能會出現鏡頭眩光現象。透過「眩光去除」自動功能,您可以消除這些眩光現象。

使用功能#

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

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