Instruments & Meters

Case Study: Independent Reference Catches Text Changes in Processed Product Images

Chidi OkonkwoOctober 25, 20265 min read7 views

At a glance

  • A retailer’s image workflow abandoned generative edits after altered digits and punctuation, then used deterministic processing plus OCR and ink checks.
  • SOMUVA UG’s Justin Flick reports that a generative image model altered mandatory carton text, including “2801” to “2001”, prompting a switch to deterministic processing with an independent reference and two verification methods. The case also shows that classical filters need gate checks, backups and post-publication comparison.
A carton back panel with abstract printed blocks is compared against a transparent reference layer on a white studio surface, with a soft inspection light across the surface.

Justin Flick of SOMUVA UG, which operates the German online shop vapechamp.de, has described a small image-processing case with a quality-control lesson: when an image carries legally required text, the characters are the measurand, not the look of the image.

The company wanted to turn phone photos of carton back panels into straightened images on white backgrounds for product pages. The panels carry manufacturer and importer names and addresses, warning texts and contact details. The images could be improved, Flick wrote, but the information could not change. Flick linked the case to Gleb Tsipursky’s argument that quality leaders should measure disagreements between automated inspection and qualified human judgment before reducing human review. He applied that principle outside the factory: an automated result is only as trustworthy as the independent reference against which it is checked.

Generative output looked right, but changed digits

The first attempt used a generative image model. The input was a straightened carton image and an instruction to keep every character, number and symbol identical. The output looked professional: sharp print, even light, clean background. Comparison with the source showed otherwise. The digits “2801” had become “2001”; a phone number contained wrong digits; a comma had become a full stop and elsewhere a full stop a comma. The changes were plausible and hard to spot at a glance. Because the information was mandatory, the company discarded the images and published none.

The lesson, Flick wrote, is that a generative model produces what text plausibly looks like, not what was printed. Visual inspection is a weak check against plausible errors and cannot serve as the reference.

Deterministic chain keeps photographed pixels

The replacement was a deterministic chain. The 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 so their pixels pass through background clean-up unchanged. The result is placed on a white background with a soft shadow. Nothing is redrawn or re-typeset; every character is derived from photographed pixels.

For each image, the company kept a reference: the same crop after rectification and illumination/white-balance only, before denoising or clean-up. Processed faces were compared with that reference before background placement using two measurement principles. An OCR diff read both images with an open-source engine using German and English data after upscaling, aligned word sequences and listed deviations. An ink check did not read text: pixels clearly darker than the carton background counted as print, and if they became light and most of a connected group disappeared, the group was flagged as a lost character.

Classical filters also failed the gate

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

OCR also had measurement uncertainty. On small print it misread the reference, for example reading “5” as “S”. A raw OCR diff therefore reported disagreements the processing had not caused: taken at face value they produced false rejects; ignored wholesale they hid real changes and produced false accepts. The ink check and a separate review helped separate OCR error from processing changes, following what Flick described as a gauge-study logic.

Second review, backups and published-file check

A separate automated review, independent of the processing chain, checked images in two rounds. In the first round a composite image failed because an inserted line could not be verified reliably; the company removed the composite and used the genuine information block from the carton. Previous states were backed up before replacement. After publication, the company downloaded delivered files and compared them with its own; at reduced resolution the mean absolute greyscale difference was well under one grey level. The published file is the last link in the chain, Flick wrote, and deserves the same check as every step before it.

Flick’s takeaways for quality teams include defining the measurand, keeping a separate reference from the earliest reliable step, using two measurement principles, characterising OCR’s own errors, treating disagreement as a stop rather than a score, testing classical filters as rigorously as AI tools, adding independent review, backing up changes, comparing published files and improving input with frontal, unwrapped, frame-filling daylight photos. Generative models remain useful where nothing has to be read, he wrote; for mandatory information the company now uses classical processing plus text comparison against the original.

Reported by Chidi Okonkwo, Factory Automation and Motion Editor.