相机控制参数 API

打开或关闭自动曝光

/** 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"

设置 IR 强度

/** set infrared(IR) intensity [0, 10] default 4*/
void SetIRIntensity(const std::uint16_t &value);     see "camera.h"

设置全局增益

注解

需要在相机打开后关闭自动曝光

/** Set global gain [1 - 16]
 * value -- global gain value
 * */
void SetGlobalGain(const float &value);    see "camera.h"

设置曝光时间

注解

需要在相机打开后关闭自动曝光

/** 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);

注解

更改参数后需要在sdk的目录下运行

make samples

来使设置的参数生效。