/** Auto-exposure enabled or not default enabled*/
bool AutoExposureControl(bool enable); see "camera.h"
/** Auto-white-balance enabled or not default enabled*/
bool AutoWhiteBalanceControl(bool enable); see "camera.h"
/** set infrared(IR) intensity [0, 10] default 4*/
void SetIRIntensity(const std::uint16_t &value); see "camera.h"
Note
需要在相机打开后关闭自动曝光
/** Set global gain [1 - 16]
* value -- global gain value
* */
void SetGlobalGain(const float &value); see "camera.h"
Note
需要在相机打开后关闭自动曝光
/** Set exposure time [1ms - 655ms]
* value -- exposure time value
* */
void SetExposureTime(const float &value); see "camera.h"
参考代码:
cam.Open(params);
cam.AutoExposureControl(false);
cam.SetGlobalGain(1);
cam.SetExposureTime(0.3);
Note
更改参数后需要在sdk的目录下运行
make samples
来使设置的参数生效。