Instruments & Meters

Why Processed Product Images Need an Independent Text Reference

Chidi OkonkwoOctober 25, 20265 min read4 views

At a glance

  • A German online retailer's case shows a generative clean-up step altering mandatory label text, and how a deterministic pipeline with OCR and ink checks caught what visual review missed.
  • A small German online shop dropped a generative image clean-up step after the model changed printed digits, punctuation and phone numbers on carton labels carrying legally required information, and replaced it with deterministic processing. Its workflow keeps a reference image from the earliest reliable step, gates every output with an OCR diff and a pixel-level ink check, and treats each disagreement as a stop to resolve rather than a similarity score.
A conceptual studio scene of a carton panel being aligned by a perspective grid and compared with a separate reference copy on a white surface.

A small German online retailer has reported a case study showing why processed product images that carry legally required text need an independent reference. Its first attempt, using a generative image model, produced polished images whose printed characters had silently changed.

The work sits outside the factory floor, but the retailer argues the principle carries over from industrial inspection: an automated result is only as trustworthy as the independent reference it has been checked against. Quality writer Gleb Tsipursky has argued that quality teams should measure disagreements between automated inspection and qualified human judgment before reducing human review, and the retailer applied that logic to its own image pipeline.

Cleaner images, unchanged information

The aim was to turn phone photos of carton back panels into straightened, evenly lit images on a white background for online product pages. Those panels carry mandatory information — manufacturer and importer names and addresses, warning texts — plus contact details such as phone numbers. The images could look better, but what they said had to stay the same. In measurement terms, the measurand was the printed text, not the look of the image.

A convincing result that failed comparison

The first pipeline used a generative image model, given a straightened photo of a carton face and an explicit instruction to keep every printed character, number and symbol identical. The output looked professional — sharp print, even light, clean background — but comparison with the source told another story. The digits “2801” had become “2001”; a phone number contained wrong digits; a comma had turned into a full stop, and elsewhere a full stop into a comma. Because the substitutions were plausible, they were hard to spot at a glance. Every generated image was discarded and none was published. The retailer's conclusion: a generative model produces what text plausibly looks like, not what was printed, which makes visual inspection a weak check and unfit to serve as the reference.

Deterministic processing from photographed pixels

The replacement is a fixed chain. Each carton face is rectified with a perspective transform defined by four corner points. Uneven lighting is flattened by estimating the background illumination and dividing it out, then white balancing to a target tone. Denoising is gentle and edge-preserving, and text blocks are marked as protected regions where pixels pass through the background clean-up unchanged. The result is placed on a white background with a soft shadow. Nothing is redrawn or re-typeset: every character in the final image derives from the photographed pixels.

A reference image and a gate with two principles

For each image a reference is kept: the same crop after rectification and the illumination and white-balance steps only, before any denoising or clean-up. Every processed face is compared with it before being placed on the background, under two independent measurement principles. The first is an OCR diff: both images are read by an open-source engine with German and English language data after upscaling, the word sequences are aligned, and every deviation is listed. The second is an ink check that does not depend on reading text: pixels clearly darker than the carton background in the reference count as print, and if such pixels turn light in the processed image while most of a connected group disappears, that group is flagged as a lost character.

Classical filters failed the gate too

The gate also showed that conventional filters are not automatically safe. A speckle filter had turned “130” into “30” and removed colons, and a threshold clean-up step had erased the dot in a web address. Both stages were dropped. Any step that decides what counts as noise, the retailer notes, can decide that a full stop is noise.

Accounting for the checker's own error

An OCR diff is itself a measurement system with its own error. On small print it misread the reference image too, for example reading a “5” as an “S”, so a raw diff reports disagreements the processing did not cause. Taken at face value these become false rejects; ignored wholesale they hide real changes as false accepts. The retailer borrowed the logic of a gauge study, separating the OCR's misreads of the reference from changes introduced by processing; the ink check and a separate review step did that work. The working principle is that each disagreement is a stop to be resolved, not a similarity score to be averaged away.

Second review, backups and the published file

A separate automated review, independent of the processing chain, checked the images in two rounds. In the first, a composite image failed because one inserted line could not be verified reliably; the composite was removed and the genuine information block from the carton used instead. Previous states were backed up before every replacement. After publication the delivered files were downloaded and compared with the originals: at reduced resolution the mean absolute greyscale difference was well under one grey level.

The retailer's operation is small and sits outside the factory, yet the sequence maps onto inspection work that quality teams are being asked to scale: a plausible-looking automated output, a reference taken from the earliest reliable step, two measurement principles with different failure modes, and a rule that disagreements stop the line instead of averaging out. The company did not abandon generative models altogether; it still uses them where nothing has to be read, and it now tests classical filters as rigorously as AI tools. For images carrying mandatory information, the published route is deterministic processing plus a text comparison against the original.

What quality teams can take away

  • Define the measurand: for images carrying mandatory text, characters matter, not appearance.
  • Keep a reference from the earliest reliable processing step; never compare an output only with itself.
  • Use two measurement principles, such as an OCR text diff and a pixel-level ink check.
  • Characterise the OCR's own errors on the reference before trusting its verdicts.
  • Treat any disagreement as a stop, not a score.
  • Test classical filters as rigorously as AI tools.
  • Add an independent second review and remove whatever cannot be verified.
  • Back up before every change and pixel-compare the published files.
  • Capture better input: frontal, unwrapped, frame-filling photos in daylight.

Tsipursky's closing question for quality leaders — when machine and qualified person disagree, is it known who was right, why, and what was changed afterwards — applies unchanged to processed images, the retailer argues. When an output and its reference disagree, that answer is wanted before anything is published.

Reported by Chidi Okonkwo, Factory Automation and Motion Editor.