3.6. Color Parameter Settings

3.6.1. Set Color AE

Pipeline pipeline = new Pipeline();
Device device = pipeline.GetDevice();
// True open color AE, False: close color AE
device.SetBoolProperty(PropertyId.OB_PROP_DEPTH_AUTO_EXPOSURE_BOOL, true);

3.6.2. Set Color Exposure

Pipeline pipeline = new Pipeline();
Device device = pipeline.GetDevice();
// True open color AE, False: close color AE
device.SetBoolProperty(PropertyId.OB_PROP_COLOR_EXPOSURE_INT, true);

3.6.3. Set Color Gain

Pipeline pipeline = new Pipeline();
Device device = pipeline.GetDevice();
// True open color AE, False: close color AE
device.SetBoolProperty(PropertyId.OB_PROP_COLOR_GAIN_INT, true);

3.6.4. Set Color Auto White Balance

Pipeline pipeline = new Pipeline();
Device device = pipeline.GetDevice();
// True: Turn on Auto White Balance,False: Turn off Auto White Balance
device.SetBoolProperty(PropertyId.OB_PROP_COLOR_AUTO_WHITE_BALANCE_BOOL, true);

3.6.5. Set Color White Balance Parameters

Pipeline pipeline = new Pipeline();
Device device = pipeline.GetDevice();
device.SetIntProperty(PropertyId.OB_PROP_COLOR_WHITE_BALANCE_INT, 5000);

3.6.6. Set Color Power Line Frequency

It is necessary to set 50Hz or 60Hz according to the power line frequency of different countries and regions. The purpose of setting the power supply frequency is to prevent Color images from flickering.

Pipeline pipeline = new Pipeline();
Device device = pipeline.GetDevice();
device.SetIntProperty(PropertyId.OB_PROP_COLOR_POWER_LINE_FREQUENCY_INT, ((int)PowerLineFreqMode.OB_POWER_LINE_FREQ_MODE_50HZ));

Remarks:

PowerLineFreqMode.OB_POWER_LINE_FREQ_MODE_50HZ :50HZ

PowerLineFreqMode.OB_POWER_LINE_FREQ_MODE_60HZ :60HZ

PowerLineFreqMode.OB_POWER_LINE_FREQ_MODE_CLOSE :Close