From 00b32f7b0b530b56a1e61ec052d2cb0112da62f0 Mon Sep 17 00:00:00 2001 From: alex-luxonis Date: Fri, 26 Nov 2021 11:55:51 +0200 Subject: [PATCH] Add manual white balance / color temperature control --- include/depthai-shared/datatype/RawCameraControl.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/depthai-shared/datatype/RawCameraControl.hpp b/include/depthai-shared/datatype/RawCameraControl.hpp index b62aaae8..6ea8bd3a 100644 --- a/include/depthai-shared/datatype/RawCameraControl.hpp +++ b/include/depthai-shared/datatype/RawCameraControl.hpp @@ -90,6 +90,8 @@ struct RawCameraControl : public RawBuffer { */ CHROMA_DENOISE = 48, /* [1] value */ + WB_COLOR_TEMP = 49, /* [1] value + */ }; enum class AutoFocusMode : uint8_t { @@ -219,6 +221,7 @@ struct RawCameraControl : public RawBuffer { uint8_t sharpness; // 0 .. 4 uint8_t lumaDenoise; // 0 .. 4 uint8_t chromaDenoise; // 0 .. 4 + uint16_t wbColorTemp; // 1000 .. 12000 void setCommand(Command cmd, bool value = true) { uint64_t mask = 1ull << (uint8_t)cmd; @@ -260,7 +263,8 @@ struct RawCameraControl : public RawBuffer { saturation, sharpness, lumaDenoise, - chromaDenoise); + chromaDenoise, + wbColorTemp); }; } // namespace dai