White balance issues in 6 of 20 B0251 cameras for multi-camera setup on Jetson Nano

Hi everyone, I’m working on a scientific multi-camera research setup and running into a frustrating consistency problem with Arducam B0251 cameras (IMX477 sensor) paired with LN058 lenses. Out of 20 units purchased, we sent them for calibration and 6 boards were flagged as defective right away. But the bigger issue is white balance consistency across the remaining units.

I’m testing on a Jetson Nano, using a white Lastolite board under a 6500K light source. Same lens, same board, no gain, fixed exposure — the only variable is the camera module itself. For each camera I adjust exposure so the white target sits just below overexposure (using sdiscope with zebrastripe threshold=98, aiming for ~98% luminosity).

What I’m seeing is that some cameras have a massive red channel over-sensitivity. When green and blue are properly exposed, the red channel is blown out. This makes color balancing across the camera array impossible. Has anyone else seen this kind of unit-to-unit variation with the B0251?

That’s quite a thorough test setup. Before I can really dig into this, could you share a bit more detail about your testing pipeline? Specifically:

  • The exact GStreamer pipeline you’re using
  • How you’re applying the ISP overrides
  • What your pass/fail thresholds are for the RGB values

Also, are you using the default ISP or a custom calibration? With that many units in a research setup, tight tolerances are expected, but factory QC is geared toward general-purpose use — so what you’re hitting may be outside what standard production validation catches.

If you have the raw numbers from your tests, that would help a lot too.

Sure, here’s the full methodology. Happy to share everything.

Environment:

  • Jetson Nano
  • SKU B0251 (IMX477 sensor)
  • SKU LN058 lens
  • White Lastolite board, even 6500K lighting
  • Monitoring: sdiscope with zebrastripe threshold=98 (targeting 98% luminosity)
  • ISP: Char-lite Calibration, nv_wrapper version 1.8.0 (16-Jul-2020), with adapted fallOff and Lens Shading for the LN058 lens

GStreamer pipeline:

gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 gainrange="1 1" ispdigitalgainrange="1 1" exposuretimerange="$exposure $exposure" wbmode=5 ! "video/x-raw(memory:NVMM), width=2592, height=1944, format=(string)NV12, framerate=30/1" ! tee name=t ! queue ! nvvidconv flip-method=2 ! videoconvert ! zebrastripe "threshold=98" ! nv3dsink window-x=700 window-y=20 window-width=1440 window-height=810 t. ! queue ! nvvidconv flip-method=2 ! video/x-raw\(memory:NVMM\), width=640, height=360, format=\(string\)NV12 ! nvv4l2h264enc insert-sps-pps=1 idrinterval=15 insert-vui=1 bitrate=200000 maxperf-enable=1 ! h264parse ! mpegtsmux ! rtpmp2tpay ! queue ! udpsink host=10.100.1.198 port=$LePort sync=false

Exposure is adjusted per camera using: v4l2-ctl -d0 with step of 100 up/down until the white target hits the right level without clipping.

ISP override generation:

nv_wrapper 0 optical_black_file ..\imx477\outputs\ob.cfg lsc ..\imx477\outputs\lsc.cfg awb ..\imx477\outputs\awb.cfg ccm ..\imx477\outputs\ccm.cfg public_params public_params.cfg out_name ..\imx477\outputs\camera_overrides.isp

Test results (format: exposure;Red;Green;Blue at center target):

Good enough (8 cameras):

50;244.7406;249.1429;251.6462  cam 06
50;248.4112;246.1586;246.8195  cam 05
50;245.9120;248.4472;250.7236  cam 04
50;244.4300;246.5653;249.0800  cam 03
50;234.0470;240.2279;244.5042  cam 02
50;242.0209;246.3014;251.0911  cam 10
50;241.2377;249.6162;252.3786  cam 14
55;245.2198;247.0716;249.1916  cam 15

Probably inaccurate (2 cameras):

50;220.7281;229.1787;230.3399  cam 07
50;192.9823;199.0358;202.2797  cam 13

Absolutely unusable — red dominant (5 cameras):

50;249.7363;221.0573;221.0169  cam 01
50;248.8033;208.0893;209.9042  cam 08
50;247.5829;205.3328;209.7224  cam 09
50;252.4373;243.0871;233.6520  cam 11
50;248.2435;212.3593;210.7744  cam 12

The pattern is pretty stark: the “unusable” cameras all show Red around 248–252 while Green and Blue are down at 205–243. On the good ones, all three channels sit within ~234–252 at the center. The red channel on the bad units is way too hot relative to G and B. I’ve attached the ISP override file I’m using (camera_overrides_477_18_cam01_V1.isp) via private message.

Thanks for the comprehensive data — this is really helpful. The pattern you’re seeing is pretty clear: on those 5 bad units the red channel sensitivity is significantly higher than green and blue, which points to a hardware-level variation in the sensor or the IR filter on those specific modules. Your ISP calibration looks reasonable and the methodology is solid.

Couple of things I’d like to check:

  1. Could you post the contents of that ISP override file here? I want to look at the CCM (color correction matrix), AWB clamping, and lens shading parameters specifically.

  2. Have you tried swapping lenses between a known-good and known-bad camera to rule out any lens-level variation?

Just to set expectations: factory QC validates against general-purpose criteria, and your use case has unusually tight tolerance for channel balance across multiple units. It’s possible these units are technically within spec for normal use but fall outside what your research application requires.

Here’s the ISP override file I’m using. This is the Char-lite Calibration output from nv_wrapper v1.8.0:

# Char-lite Calibration
# command: nv_wrapper 0 optical_black_file ..\imx477\outputs\ob.cfg lsc ..\imx477\outputs\lsc.cfg awb ..\imx477\outputs\awb.cfg ccm ..\imx477\outputs\ccm.cfg public_params public_params.cfg out_name ..\imx477\outputs\camera_overrides.isp
# version: 1.8.0
# created on: 16-Jul-2020 17:10

Auto Exposure:

ae.MeanAlg.HigherTarget = 120;
ae.MeanAlg.LowerTarget = 120;
ae.MeanAlg.HigherBrightness = 10000;
ae.MeanAlg.LowerBrightness = 600;
ae.MeanAlg.SlopFactor = 0.3;
ae.MeanAlg.MinTailMass = 0.001;
ae.MeanAlg.CriticalMass = 0.015;
ae.MeanAlg.ConvergeSpeed = 0.5;
ae.MaxFstopDeltaPos = 0.4;
ae.MaxFstopDeltaNeg = 0.5;
defaults.autoFramerateRange = {7.5, 120.0};
ae.PerChannelGainAdjustment = {1.0, 1.0, 1.0, 1.0};

Flicker:

flicker.ConfidenceThreshold = 32;
flicker.SuccessFrameCount = 8;
flicker.FailureFrameCount = 3;
flicker.CorrectionFreqList = {100, 120};

AWB:

awb.NumGrayLineSoftClampPoints = 2;
awb.GrayLineSoftClamp[0] = {0.9268, 0.9268};
awb.GrayLineSoftClamp[1] = {1.6582, 1.6582};
awb.GrayLineThickness = 0.0088;
awb.HighU = 1.6582;
awb.LowU = 0.9268;
awb.GrayLineSlope = -0.9946;
awb.GrayLineIntercept = 2.4544;
awb.module_cal_enable = 0;

AWB v4:

awb.v4.NumGrayLineSoftClampPoints = 3;
awb.v4.GrayLineSoftClamp[0] = {0.9268, 0.9268};
awb.v4.GrayLineSoftClamp[1] = {0.9268, 0.9268};
awb.v4.GrayLineSoftClamp[2] = {1.6582, 1.6582};
awb.v4.GrayLineThickness = 0.0442;
awb.v4.HighU = 1.6582;
awb.v4.LowU = 0.9268;
awb.v4.FusionNumLights = 5;

CCM (Color Correction Matrix):

colorCorrection.srgbMatrix[0] = {1.53743000, -0.19831000, 0.05253000};
colorCorrection.srgbMatrix[1] = {-0.20559000, 1.69073000, -0.45222000};
colorCorrection.srgbMatrix[2] = {-0.33184000, -0.49242000, 1.39969000};

Optical Black:

opticalBlack.manualBiasR/GR/GB/B = 64;
opticalBlack.float.manualBias = 0.06256109;

Lens Shading:

ap15Function.lensShading = TRUE;
lensShading.module_cal_enable = 0;
lensShading.falloff_factor = 20;
lensShading.falloff_PointsCount = 6;
lensShading.imageHeight = 1944;
lensShading.imageWidth = 2592;
lensShading.ctrlPointsCount = 3;
lensShading.ctrlPoints[0].cct = 2856 (light_family=1);
lensShading.ctrlPoints[1].cct = 4000 (light_family=2);
lensShading.ctrlPoints[2].cct = 6500 (light_family=1);

Noise Reduction v2: {1, 2, 3, 5, 6, 7, 7} across all modes

Noise Reduction v6: Chroma and Luma enabled, GainThreshold Chroma=1.0, Luma=2.0

Sharpness v2 is {3, 3, 5, 5, 5, 5, 5} and Tone Curve is Gamma=2.4 across all 9 presets with standard curve control.

One thing I notice: the CCM matrix looks like it was calibrated once and we’re applying the same matrix to all cameras. I haven’t tried swapping lenses between good/bad units yet — that’s a good call. I’ll do that and report back. But given the magnitude of the red shift (Red at ~250 while Green/Blue at ~205-210), I’d be surprised if the lens is the culprit.

Good catch on the CCM — yes, it’s a single calibration applied across all units. That approach assumes the sensor spectral response is consistent unit-to-unit, and your data is showing that assumption breaks down on those 5 cameras.

The ISP config itself looks well-formed. The optical black bias is uniform across channels (64), the lens shading correction is reasonable for the LN058, and the AWB gray line parameters are standard. Nothing in here should be causing the kind of red-dominant shift you’re seeing — which reinforces that this is a sensor-level variation.

When you do the lens swap test, make sure to keep everything else identical (same exposure value, same ISP file). If the red dominance follows the camera body and not the lens, that pretty much confirms it’s sensor variance.

Given your requirements — needing 10 units with tight channel balance for a multi-camera research array — I think the path forward might be pre-screening units against your specific criteria rather than trying to calibrate around the variance. Let me check internally on what options we have for that.

I did the lens swap test — the red dominance stays with the camera body, not the lens. So it’s definitely the sensor module.

To summarize where I’m at: I need 10 B0251 cameras that can achieve acceptable RGB balance under my test conditions. My criteria is basically: at the center of a white target under 6500K with no gain and fixed exposure, all three channels (R, G, B) should fall within roughly 234–252 at whatever exposure gets the white target to ~98% luminosity. The good units I’ve found (cams 02, 03, 04, 05, 06, 10, 14, 15) all hit this. The bad ones show Red pulling away from Green/Blue by 25-40+ points.

Same pipeline as before:

GStreamer:

gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 gainrange="1 1" ispdigitalgainrange="1 1" exposuretimerange="$exposure $exposure" wbmode=5 ! "video/x-raw(memory:NVMM), width=2592, height=1944, format=(string)NV12, framerate=30/1" ! tee name=t ! queue ! nvvidconv flip-method=2 ! videoconvert ! zebrastripe "threshold=98" ! nv3dsink window-x=700 window-y=20 window-width=1440 window-height=810 t. ! queue ! nvvidconv flip-method=2 ! video/x-raw\(memory:NVMM\), width=640, height=360, format=\(string\)NV12 ! nvv4l2h264enc insert-sps-pps=1 idrinterval=15 insert-vui=1 bitrate=200000 maxperf-enable=1 ! h264parse ! mpegtsmux ! rtpmp2tpay ! queue ! udpsink host=10.100.1.198 port=$LePort sync=false

ISP:

nv_wrapper 0 optical_black_file ..\imx477\outputs\ob.cfg lsc ..\imx477\outputs\lsc.cfg awb ..\imx477\outputs\awb.cfg ccm ..\imx477\outputs\ccm.cfg public_params public_params.cfg out_name ..\imx477\outputs\camera_overrides.isp

Exposure adjusted with v4l2-ctl -d0 in steps of 100.

I’ve got 8 good units from the batch but need 10 total. Is there any way you can help source additional B0251 units that meet this channel balance requirement? Happy to provide whatever documentation you need on the test procedure.

Thanks for confirming the lens swap result — that nails it down to sensor-level variation on those specific modules. The pattern across your 15 tested units is pretty clear:

  • 8 units are in a tight cluster: R/G/B all within ~234-252 at exposure 50-55, perfectly usable
  • 2 units (cams 07, 13) are globally darker across all channels (R/G/B all lower by ~20-50 points) — these might be correctable with per-camera exposure compensation
  • 5 units show a distinct red-channel over-sensitivity: Red at ~248-252 while G/B at ~205-243 — these are the ones that make uniform color balancing impossible

I’ve sent you a private message with details on how we can approach getting you additional units screened against your criteria. In short, since your test procedure is well-documented and reproducible, we should be able to pre-validate units before shipping. I’d recommend we use your exact pipeline — same GStreamer command, same ISP override, same 6500K target — as the screening benchmark.

One thing worth noting for the forum: if anyone else is running multi-camera arrays with the B0251/IMX477, you may want to budget for some spare units. The sensor-to-sensor variation we’re seeing here (~15-20% outliers in this batch) isn’t unusual for this class of sensor when you need tight inter-camera color consistency. Per-unit ISP calibration can compensate for some of it, but the red-dominant shift on those 5 bad units is too large to correct in software without introducing other artifacts.