I’m using the 64MP Autofocus Camera for Raspberry Pi and I keep getting horizontal color stripes in my photos whenever I shoot at the maximum resolution. At lower resolutions everything looks fine. There’s also something odd with the autofocus — it hunts a lot and sometimes the shot comes out soft.
Is this a known thing? I’m fairly new to libcamera so I might be doing something silly. I’ve attached a sample of what the stripes look like.
Hi, welcome! The horizontal color stripes at max resolution are a somewhat known behavior. Before pointing you at the fix, could you share a few things so we’re sure we’re looking at the same case?
Which Raspberry Pi model are you using?
Which OS / libcamera version?
The exact libcamera-still (or libcamera-jpeg) command you’re running
Ideally a full-resolution sample image
Also, are the stripes only at the full 64MP resolution, or do they show up at other sizes too?
The stripes only appear at full resolution. If I drop the resolution down they disappear entirely. The sample I attached is straight out of the camera, no editing. Sorry, I don’t have any logs — I’m not sure which ones would even help.
That’s all really helpful. The command plus the “only at max resolution” clue pretty much confirms it: the horizontal color banding is coming from the denoise step. At full resolution the ISP applies CDN (chroma denoise), and that’s what produces those stripes.
You can turn it off with the --denoise cdn_off parameter. Try this exact command:
and the horizontal stripes are completely gone at full resolution. Thank you!
One thing still bothering me though — the autofocus. It hunts a lot and sometimes the shot ends up soft even when it seems to lock. Is there anything I can do about that?
For the autofocus, the fix depends a lot on what you’re actually shooting, since the lens has a limited focus range. Could you tell me roughly what focusing distance you’re working at? For example: are you doing close-ups where the subject is a few centimetres away, or shooting things further out? If you can give me a rough distance (say ~10 cm, ~30 cm, or near-infinity), I can advise on the right approach instead of guessing.
Mostly close-ups — the board and small parts, so the subject is usually about 10–15 cm from the lens. Occasionally I’d like to shoot something further away too. Does that make a difference for the autofocus settings?
Thanks, that helps a lot. Quick recap of where we are:
Horizontal color stripes at max resolution — root cause is the CDN (chroma denoise) processing applied at full resolution. Disabling it with --denoise cdn_off resolves the banding. Working command:
Focusing — still open. You mentioned ~10–15 cm for your close-ups. Once I know the main focusing distance you’ll be working at, I can advise on the right focus mode and settings for your use case rather than guessing.
So to close this out I just need the focusing distance you’ll mostly use — then we can tackle the soft-focus / hunting side.