AW00136902000
Features
Basler dart BCON
91
1. If the BalanceWhiteAuto parameter is set to Off, reset the white balance by setting the
BalanceRatio parameter value for all color channels (red, green, and blue) to 1. For more
information about the BalanceRatio parameter, see Section 11.6.3 on
.
2. Set the LightSourcePreset parameter to the desired light source preset.
You can set the parameter value from within your application software by using the Basler pylon
API. The following code snippet illustrates using the API to configure white balancing and set a light
source preset:
// When the balance white auto function is disabled,
// white balance must be reset before changing the preset
camera.BalanceWhiteAuto.SetValue(BalanceWhiteAuto_Off);
camera.BalanceRatioSelector.SetValue(BalanceRatioSelector_Red);
camera.BalanceRatio.SetValue(1);
camera.BalanceRatioSelector.SetValue(BalanceRatioSelector_Green);
camera.BalanceRatio.SetValue(1);
camera.BalanceRatioSelector.SetValue(BalanceRatioSelector_Blue);
camera.BalanceRatio.SetValue(1);
// Set the light source preset to "Tungsten 2800 K"
camera.LightSourcePreset.SetValue(LightSourcePreset_Tungsten2800K);
// When the balance white auto function is enabled,
// the preset can be changed right away
camera.BalanceWhiteAuto.SetValue(BalanceWhiteAuto_Continuous);
camera.LightSourcePreset.SetValue(LightSourcePreset_Daylight5000K);
To set a light source preset: