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

Camera board • Re: Strange issue with pi cam v1, pi 5 and picamera2 - darker colors look purple

$
0
0
Changing that line of code does eliminate the purple blacks, but I'm still seeing a greenish tinge to whites. Is there a way to adjust that or is that just the default white balance with the pi 5 software? thanks!
It might just be the white balance tuning. You can change that in the camera tuning file. If you find the camera tuning file (normally /usr/share/libcamera/ipa/rpi/pisp/data/ov5647.json on a Pi 5) and look for the fields "sensitivity_r" and "sensitivity_b". One very simple adjustment is to tweak these values, and making them larger "de-greens" an image. I think they're currently at 1.0, but try changing them to 1.05 (which I note is the value in the vc4, or pre-Pi 5, tuning file - not sure why they aren't the same tbh).

(Tip: when you edit a tuning file, start by typing some garbage into the top of the file and checking that the camera doesn't start - just to be sure you've got the right file!)

Statistics: Posted by therealdavidp — Wed Jun 19, 2024 7:39 am



Viewing all articles
Browse latest Browse all 5349

Trending Articles