Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4816

Camera board • Re: Red Hue When Using IR Filter with V3 NOIR

$
0
0
Hi, yes, I've always found libcamera controls a bit confusing to use as well! Try replacing

Code:

               if (key == '\n')                       output->Signal();
by something like this (obviously adjust as necessary to your own taste and requirements!)

Code:

if (key == '\n') {static bool black_and_white = false;black_and_white = !black_and_white;libcamera::ControlList controls;controls.set(controls::Saturation, black_and_white ? 0.0 : 1.0);app.SetControls(controls);}

Statistics: Posted by therealdavidp — Tue Jul 16, 2024 8:21 am



Viewing all articles
Browse latest Browse all 4816

Trending Articles