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 357 forks source link

Raspberry Pi4 - Unexpected/weird signals in RGB channels #579

Open pankajkgupta opened 5 years ago

pankajkgupta commented 5 years ago

Hi, I recently got Raspberry Pi4 B and wanted to run my image acquisition script.

The script records RGB images fine on Raspberry Pi 3B+ as below- raspberrypi 3B+ The RGB channels(in order) look like this- raspberry pi 4B red raspberry pi 4B green raspberry pi 4B blue

But with the same camera connected to Raspberry Pi 4B, the images look a bit different as below- raspberry pi 4B

and the RGB channels look like below- raspberrypi 3B+ red raspberrypi 3B+ green raspberrypi 3B+ blue

The lightings, the camera and the recording script were same in both the cases. I checked the RGB channels, all the RGB channels look a lot different in these two raspberry pis.

Has anyone noticed something similar?

Any help would be highly appreciated.

Pankaj

pankajkgupta commented 5 years ago

Update: I set camera.awb_gains = (1,1) in my script. I checked the value of camera.awb_gains on Raspberry Pi 3B+ which was fine. But on Raspberry Pi4B, the values are not set to (1,1).

I believe this is the problem with color channels being different. Seems camera.awb_gains property is not working properly on Raspberry Pi 4B.

Any suggestions from anyone would be nice.

Pankaj