Skip to content
LexDataLexData
PlatformIndustriesCustomers
DocsThe Field GuideBlogWhy models drift
AboutCareersSecurityContact
Log inStart now

// MANUFACTURING

Product Color Inspection

Product Color Inspection. What it takes to run it.

The product masked so the belt stays out, its colour quantised to swatches and checked against a reference measured on this camera.

Start with your footageBook a demo →All of manufacturing →

// 01 · The question

“Is this sleeve's colour still inside tolerance, measured the same way as the reference on this camera?”

// 02 · Why it is hard

A colour that looks slightly different in the camera's raw values can be a large difference to an eye, and the reverse, so the comparison has to run in a perceptual colour space rather than the camera's own numbers. Averaging every pixel inside the mask is also wrong, since a product's printed text or foil accent drags the average toward white or gold and hides a real shift in the colour that actually matters, which is why the mask is quantised to a handful of dominant swatches instead of one blended figure.

// 03 · What the labels have to be

Instance segmentation

Decided before the first frame

A box's corners hold whatever is behind the product, and on a conveyor that is the belt itself. A colour measurement taken over a box is a blend of the product and the belt in a ratio that changes with how the product landed, so the product gets a mask instead, a polygon traced around its own outline, with only the pixels inside it counted.

This is the decision that is expensive to reverse. The geometry has to match what the answer contains, and finding out it does not means labelling the set a second time.

// 03a · What it finds

The product's own outline

a polygon traced around it rather than a box, so the belt or background behind it never enters the measurement

The dominant colours inside that outline

quantised to a handful of swatches with the share of the mask each one covers, rather than one average that printed text or a foil accent would drag off true

Each swatch against the reference

compared in a perceptual colour space to a sample measured on this same camera, not a brand file or a spectrophotometer reading taken on different equipment

A run the system doubts

a product half in the shadow of a guard, two overlapping after a jam, or an accent catching the light and reading as a flat colour, held rather than scored either way

// 03b · What it checks

  1. 01

    Each swatch's distance from the reference in the perceptual colour space, against the tolerance the brand set on that reference, not on the camera's raw numbers.

  2. 02

    A run of out-of-tolerance frames before the rule fires, not one frame, since a single blurred frame is noise and a run is the press actually drifting.

  3. 03

    The rule's severity and cooldown, approved before it goes live, so the line hears about a run of bad colour and not every blurred frame along the way.

  4. 04

    The reference itself, re-measured on this camera at the start of the shift and again after any service to the camera, since the swatch is only ever compared against what this camera measured, not against the brand's printed file.

// 03c · What the line provides

  • The camera already over the line, placed where the product is isolated from its neighbours, such as after the folder-gluer or past the selvedge on a dyeing line.
  • An approved reference sample kept physically at the line and re-measured on this camera, not only the brand's printed swatch or a spectrophotometer reading.
  • Frames from this line's own belt, lighting and product, so the mask learns this line's background rather than a studio photograph.
  • Someone to set the tolerance as a distance the brand has approved, and to adjust the press when the rule fires on a run of bad colour.

// 04 · How we run it

Three parts of one loop, on this job.

LexAnnotate

Defect Annotation

Pixel-level defect annotation for surface scratches, cracks, dents, weld faults, and assembly misalignments. Multi-sensor alignment for multi-camera inspection systems.

LexInsight

Line Performance

Ask which shift or which line is producing the most of one defect class, and get an answer with the frames behind it, graded against the plant's own written standard.

LexAlert

Quality Alerts

Monitor defect detection accuracy across changing production conditions. Detect when lighting shifts, new materials, or equipment aging degrades model performance. Auto-retrain to maintain 99%+ accuracy.

How the loop fits together →

// 05 · What breaks it after launch

Covariate shift

A camera was replaced

→Covariate shift →

The camera over the line fails and is replaced with the same model from the spares cupboard, or a newer one because the old model is discontinued. The mask still finds the product and the quantiser still finds its swatches, but every one of them now reads a shade different from the moment the new sensor is powered on, with nothing wrong at the press. The order of repair is the reference first, re-measured on the new camera, and the model second.

It is not the only one that can get this use case, it is the one that usually gets it first. All ten conditions.

// 06 · In manufacturing

Defect Detection at Scale

Full write-up ↓Every case study →

The Challenge

Vision models performed well in pilots but lost accuracy as factory conditions shifted.

Our Execution

Built pixel-level annotated datasets and multi-sensor alignment for reliable defect detection.

The Result

Maintained 99%+ defect detection accuracy across changing production environments. Reduced unplanned downtime.

99%+

Accuracy maintained in production

// 06a · Questions we get asked

Does this read colour the way a spectrophotometer does?

No. A spectrophotometer measures a single point under controlled conditions; this measures the product's own camera view, under the plant's own lights, and compares it with a reference measured on that same camera. The brand's spectrophotometer reading is still the document the reference itself is approved against, once, before it goes in the drawer at the line.

Why a mask instead of a box?

Because a box's corners hold whatever sits behind the product, and on most lines that is a belt with its own colour. A mask traced around the product's own outline keeps the belt out of the measurement entirely, which matters for a colour check in a way it does not for a defect box, since colour is the whole measurement rather than one signal among several.

What happens when the camera is replaced?

Every swatch reads a shade different from the moment the new camera is powered on, because the sensor's own colour response has changed, not the product. Nothing on the line is actually wrong. The reference sample gets re-measured on the new camera first, the tolerance is reset around that new measurement, and only then is the mask itself checked, which usually still holds.

What does the press operator actually receive?

A rule written as a sentence, with its own severity and cooldown, approved before it goes live: a run of frames outside tolerance on this line, with the frame, the mask and the measured swatch shown beside the reference swatch. The operator looks at both and adjusts the press before the run is lost.

Read next

Product colour inspection with a camera, the full walk-through →The same packaging line camera, checking presence and placement instead of colour →What a replaced camera does to a measurement that depends on its sensor →
Start with your footageBook a demo →

// 07 · Also in manufacturing

Surface Defect Detection→Weld Quality Inspection→Assembly Verification & Error Proofing→Package & Label Inspection→Package Damage Detection→FDA Food Label Compliance→Juice Box Quality Inspection→Diabetes Device Inspection→Date & Lot Code Inspection→Predictive Maintenance→Multi-Sensor Monitoring→Tablet Defect Inspection→Syringe Barrel Defect Detection→Foreign Material Detection→Glass Defect Detection→Semiconductor Wafer Inspection→Strip Surface Defect Inspection→Ceramic Defect Detection→Wood Defect Detection→Pipe & Tube Defect Inspection→Body-in-White Inspection→Contact Lens Defect Inspection→Coffee Bean Defect Inspection→Parts Count Verification→Pallet Scanning→PCB Defect Detection→IV Bag Fill Level & Leak Detection→Bottle Cap Inspection→Paint Defect Detection→Fall Detection→Orthopedic Implant Inspection→All forty-one→
Surface Defect DetectionWeld Quality InspectionAssembly Verification & Error ProofingPackage & Label InspectionPackage Damage DetectionFDA Food Label ComplianceJuice Box Quality InspectionDiabetes Device InspectionDate & Lot Code InspectionPredictive MaintenanceMulti-Sensor MonitoringTablet Defect InspectionSyringe Barrel Defect DetectionForeign Material DetectionGlass Defect DetectionSemiconductor Wafer InspectionStrip Surface Defect InspectionCeramic Defect DetectionWood Defect DetectionPipe & Tube Defect InspectionBody-in-White InspectionContact Lens Defect InspectionCoffee Bean Defect InspectionParts Count VerificationPallet ScanningPCB Defect DetectionIV Bag Fill Level & Leak DetectionBottle Cap InspectionPaint Defect DetectionFall DetectionOrthopedic Implant InspectionAll forty-one →

Send us a week of this footage. We’ll show you what comes back.

Start with your footageBook a demo →
LexData
LexData

Product

  • Platform
  • Industries
  • Use cases

Resources

  • Docs
  • The Field Guide
  • Blog
  • Why models drift

Industries

  • Energy & utilities
  • Oil & gas
  • Agriculture
  • Manufacturing
  • Insurance
  • Retail
  • Robotics

Company

  • About
  • Customers
  • Careers
  • Contact

Trust

  • Security
  • Privacy
  • Terms

Stay updated

What we learn running vision models in production.

See everything.
Miss nothing.

Stay updated

What we learn running vision models in production.

Terms of use & Privacy policy

© 2026 LexData Labs · All rights reserved