Skip to content

Commit

Permalink
Merge pull request #67 from luxonis/manual_white_balance
Browse files Browse the repository at this point in the history
Add manual white balance / color temperature camera control
  • Loading branch information
alex-luxonis authored Nov 29, 2021
2 parents 77f0f1f + 00b32f7 commit b88d0a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/depthai-shared/datatype/RawCameraControl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ struct RawCameraControl : public RawBuffer {
*/
CHROMA_DENOISE = 48, /* [1] value
*/
WB_COLOR_TEMP = 49, /* [1] value
*/
};

enum class AutoFocusMode : uint8_t {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -260,7 +263,8 @@ struct RawCameraControl : public RawBuffer {
saturation,
sharpness,
lumaDenoise,
chromaDenoise);
chromaDenoise,
wbColorTemp);
};

} // namespace dai

0 comments on commit b88d0a7

Please sign in to comment.