waveform80 / picamera

A pure Python interface to the Raspberry Pi camera module
https://picamera.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.57k stars 355 forks source link

Raspberry Pi 4B - `awb_gains` not working #580

Open pankajkgupta opened 5 years ago

pankajkgupta commented 5 years ago

I set camera.awb_mode = off and camera.awb_gains = (1,1) in my script to record images. After setting above, I check the value of camera.awb_gains. On Raspberry Pi 3B+, the values look fine. But on Raspberry Pi4B, the values are not set to (1,1) and changes at every run (probably based on lighting).

I believe this is causing a problem with colour channels being different at every run. My application is colour sensitive. Seems camera.awb_gains property is not working properly on Raspberry Pi 4B.

Did anyone have a similar issue? Any suggestions from anyone would be nice.

Pankaj

jtc42 commented 5 years ago

This seems related to the firmware. See: https://github.com/raspberrypi/firmware/issues/1215

If you run the update suggested in the later comments, that should alleviate the issue.