A small e-commerce imaging project offers a cautionary case for quality teams: a generative image model can make a photographed carton panel look cleaner while silently changing legally required text. Justin Flick, writing for German online retailer SOMUVA UG, describes how the company discarded its first AI-generated results and rebuilt the workflow around deterministic processing and an independent reference.
The task was to turn phone photos of carton back panels into straight, clean images on a white background for product pages. The panels carry manufacturer and importer names and addresses, warning texts and contact details. Appearance could improve; the information could not. In measurement terms, the measurand was the printed text, not the image’s look.
A polished result that failed the text check
The first attempt used a generative model instructed to keep every character, number and symbol identical. The output looked professional, with sharp print, even lighting and a clean background. Comparison with the source showed otherwise: “2801” had become “2001”, a phone number contained wrong digits, and commas and full stops had been swapped. Because the changes were plausible, they were hard to catch at a glance. The company discarded the images and published none.
The lesson: a generative model reproduces what text plausibly looks like, not necessarily what was printed. Visual inspection is a weak control against plausible errors and cannot serve as the reference.
Deterministic processing keeps photographed pixels
The replacement is a deterministic chain. Each carton face is rectified with a perspective transform from four corner points. Uneven lighting is flattened by estimating background illumination and dividing it out, followed by white balancing. Denoising is gentle and edge-preserving. Text blocks are protected regions where pixels pass through background cleanup unchanged. The result is placed on a white background with a soft shadow. Nothing is redrawn or re-typeset; every character comes from the photographed pixels.
Two checks against an early reference
For each image the company kept a reference: the same crop after rectification, illumination correction and white balance, but before denoising or cleanup. Each processed face was compared with it before background placement. The first check was an OCR diff. Both images were upscaled and read by an open-source OCR engine with German and English data; word sequences were aligned and deviations listed. The second was an ink check independent of reading. Pixels clearly darker than the carton background in the reference counted as print. If such pixels became light and most of a connected group disappeared, the group was flagged as a lost character.
Classical filters were not automatically safe. A speckle filter turned “130” into “30” and removed colons; a threshold cleanup erased the dot in a web address. Both stages were dropped. The company concluded that any step deciding what counts as noise can decide a full stop is noise.
OCR introduced its own measurement uncertainty. On small print it misread the reference too. A raw OCR diff therefore reported disagreements that processing had not caused. Taken at face value, those produced false rejects; ignored wholesale, they hid real changes and produced false accepts. Using a gauge-study analogy, the company separated variation in the measurement system from variation in the part. The independent ink check and a separate review helped distinguish OCR misreads from processing changes. The principle, drawn from Gleb Tsipursky’s argument, is to identify the source of a disagreement and treat it as a stop to be resolved, not a score to average away.
Second review, backups and the delivered file
A separate automated review, independent of the processing chain, checked the images in two rounds. In the first, a composite failed because one inserted line could not be verified reliably; the company removed it and used the genuine information block from the carton. Previous states were backed up before replacement. After publication, the company downloaded the delivered files and compared them with its own. At reduced resolution, the mean absolute greyscale difference was well under one grey level.
Practical rules for mandatory text
For quality teams, the case suggests several controls:
- Define the measurand: characters matter more than appearance.
- Keep a separate 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.
- Characterize OCR 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 anything unverifiable.
- Back up before changes and pixel-compare published files.
- Improve input with frontal, unwrapped, frame-filling daylight photos.
Generative models remain useful where nothing must be read. For mandatory information, the company now uses classical processing plus a text comparison against the original. Its closing question is the quality team’s: when output and reference disagree, know who was right, why, and what changed before publishing.
