raspberrypi / libcamera

Other
196 stars 74 forks source link

False colours from global shutter camera on RPi5 #122

Closed snaggas closed 3 months ago

snaggas commented 3 months ago

With Bookworm freshly installed on a Raspberry Pi 5, the global shutter camera (IMX296) gives false colours. The attached picture of a colour wheel was created with libcamera-still -o test.jpg and shows that red and blue are exchanged, which suggests an issue with colour encoding, e.g. RGB exchanged for BGR. Surprisingly, I have not seen this issue reported so perhaps it's caused by a recent update. Does anyone else see this behaviour? Thanks in advance! test

6by9 commented 3 months ago

Should be already resolved via https://github.com/raspberrypi/linux/pull/6027. Use sudo rpi-update to get the latest kernel to confirm (normal warnings about not doing this on a critical Pi, or taking backups first).

snaggas commented 3 months ago

Yes, that resolves it. Thanks. Sorry if that was obvious - it didn't turn up in my searches.

6by9 commented 3 months ago

It had already been raised in both https://forums.raspberrypi.com/viewtopic.php?t=367236 and https://forums.raspberrypi.com/viewtopic.php?t=367471