Arducam OV2311 camera gives 2x2 pixel aliasing and inverted columns on Ubuntu and Windows

Hi, I’m getting really bad image aliasing on a 2x2 pixel pattern with this camera and I’m stuck. I’m starting to think it’s a firmware bug inside the camera itself.

I’ve now tested this on 2 different cameras I bought, on 2 different PCs, and 2 different OSes, and the same artifact shows up every single time. I also tested yuv images and the problem is still there, so it’s not acceptable for JPG compression either.

When I zoom in on one of the captures, I can see columns of pixels are being inverted pairwise. The noise is so bad that the effective resolution of the image is basically cut by 4. I never got it to work properly at all.

All I want is a single full resolution image without this problem. Can anyone help?

Hi, thanks for the detailed report. That’s a clearly reproducible issue so let’s dig into it.

Can you share your full environment so I can match it against known behavior?

  • Exact product/model you’re using
  • Platform (OS + version) on both machines
  • Which capture tools and formats you tried

If you were following a specific doc, link that too so I can see the exact capture path you used.

Sure. Here’s everything:

Product: Camera Breakout Board - Arducam 2MP Global Shutter USB Camera Board, 50fps, OV2311 Monochrome, UVC Webcam Module (low distortion M12 lens, no microphones). Product page:
https://www.arducam.com/product/arducam-2mp-global-shutter-usb-camera-board-for-computer-50fps-ov2311-monochrome-uvc-webcam-module-with-low-distortion-m12-lens-without-microphones-compatible-with-windows-linux-android-and-mac-os/

Platform: tested on a laptop under Ubuntu, and also on Windows.

I was following this guide:
https://docs.arducam.com/UVC-Camera/Appilcation-Note/External-Trigger-Mode/OV2311-Global-Shutter/

Thanks, that’s helpful. A couple of quick questions:

  1. Can you list every capture combination you tried, so I know what’s been ruled out?
  2. Any code (v4l2 settings, scripts, gst pipelines) you can paste?
  3. Any logs from the capture side?

Even rough notes help - I want to see if the artifact follows the format or the hardware.

No code and no logs I can share - I was just using the standard capture approaches from the documentation.

Here’s every combination I tried, and all of them produce the exact same 2x2 aliasing:

  • mjpg with v4l on Ubuntu
  • yuyv with v4l on Ubuntu
  • mjpg with amcap on Windows
  • yuyv with amcap on Windows

Same artifact across all four. That’s why I suspect the firmware. What do you want me to try next?

Ok, one thing stands out: you’re seeing it in both MJPEG and YUYV, which is a bit unusual if it were purely a decompression artifact - but let’s not assume yet.

First suspicion on my side is the JPEG encoding path. Even when you request YUYV, it’s worth double-checking what the device is actually streaming vs. what the app is doing internally.

Let’s do a clean isolation test:

  1. Choose the YUV format explicitly (uncompressed).
  2. Capture again with that format and save a single full frame.

If the aliasing disappears in YUV, the cause is JPEG encoding. If it’s still there in a raw YUV frame, then we’re looking at the sensor/firmware side and we go from there.

Can you run that and post a cropped zoom of the result?

Just to be sure I do it right - when you say “choose the YUV format”, do you mean force YUYV and make sure nothing is transcoding to MJPEG in the middle? I want to avoid a false negative where I think it’s YUV but it’s actually still going through JPEG somewhere.

Exactly. Force the uncompressed YUV (YUYV) format end to end:

  • On Ubuntu/v4l2, set the pixel format explicitly to YUYV and save a single raw frame (not a re-encoded one).
  • On Windows with Amcap, select the YUYV option in the format dropdown, not the MJPEG one.

Don’t let any tool auto-pick MJPEG. Then zoom into the same 2x2 area that showed the inverted pairwise columns before.

This tells us definitively whether the artifact is introduced by JPEG encoding or exists in the raw stream.

Ok I’ll run the YUV capture and report back with a zoom. Fingers crossed this narrows it down - I’ll update once I’ve got the frame.

Sounds good. Quick summary of where we are so far and the current conclusion:

  • Symptom: 2x2 pixel aliasing, columns of pixels inverted pairwise, effective resolution reduced by ~4.
  • Reproduced on 2 cameras, 2 PCs, 2 OSes, across four capture combos (mjpg/yuyv via v4l on Ubuntu; mjpg/yuyv via Amcap on Windows).
  • Suspected root cause at this point: the JPEG encoding path.
  • Next step / workaround to confirm: force the uncompressed YUV (YUYV) format end to end and recapture a single frame to see whether the aliasing is still present.

Post your YUV frame when you have it and we’ll compare against the MJPEG capture.