Blister packs of tablets and capsules in different colours

Why colour inspection drifts on the factory floor — and how to stop it

Colour is the hardest thing for a camera to judge consistently. A practical guide to lighting, calibration and ΔE2000 for inline colour and shade checks.

Infraglance Engineering2 min read

Ask a quality manager about automated colour inspection and you will often hear the same story: it worked during commissioning, then slowly started rejecting good parts — or worse, passing bad ones.

The model rarely changed. The light did.

The camera does not see colour, it sees light

A colour camera records the light reflected from a part, shaped by the light source, the lens, the sensor and its automatic settings. Change any of these and the recorded colour changes, even though the part has not.

Common culprits on a real line:

  • Daylight through skylights changing over the day
  • Fluorescent tubes ageing or being replaced with LEDs
  • Auto-exposure and auto-white-balance “helpfully” correcting each frame
  • Dust on the lens or the lighting cover

A pipeline that holds its calibration

Enclose and control the light. A hood or tunnel with fixed, daylight-balanced (D65) LEDs removes ambient light from the equation.

Lock the camera. Exposure, gain and white balance are fixed. Nothing on the camera is allowed to adapt.

Calibrate every shift. The station images a colour reference card at shift start and computes a correction. If the correction drifts beyond a limit, the station raises a maintenance flag instead of silently compensating.

Measure in a perceptual space. Pixels are converted to CIELAB and compared with the approved master sample using ΔE2000, which tracks how differences are perceived by people better than simple RGB distances. The customer sets the tolerance — for example ΔE ≤ 1.5.

Look at patterns, not just averages. Average colour can be in tolerance while a streak, blotch or uneven coating ruins the part. An anomaly model trained on good parts runs alongside the colour measurement.

Alarm on the trend. A slow drift toward the limit is often the most useful signal of all — it points to a dosing, temperature or supplier change upstream before any part fails.

Be honest about what a camera can do

An industrial RGB camera under controlled light measures colour difference against a master sample very well. It is not a laboratory spectrophotometer. When a specification demands lab-grade absolute colour, we integrate the customer’s spectrophotometer or use a multispectral camera — and we say so in the feasibility report.

That honesty is the difference between a pilot and a production system. Talk to us about your colour and shade inspection.

Design partner programme · now open

Have a question like this on your site?

Bring it to the engineers who wrote this. We’ll answer it on your own footage or samples in a paid feasibility study.