A small online retail case has produced a practical warning for teams using automated image processing on product photos that carry legally required information: a polished-looking result can still be wrong. Justin Flick, writing for SOMUVA UG, describes an effort to turn phone photos of carton back panels into straightened images on white backgrounds for product pages. The panels contained manufacturer and importer names and addresses, warning texts and contact numbers. The goal was to improve appearance without changing the printed information.
The first attempt used a generative image model. Flick supplied a straightened carton image and instructed the model to preserve every character, number and symbol. The output appeared professional—sharp print, even lighting and a clean background—but comparison with the source revealed substantive changes. The digits “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 difficult to catch by eye. The generated images were discarded; none was published.
The replacement was a deterministic processing chain. The carton face is rectified with a perspective transform from four corner points. Uneven illumination is estimated and divided out, followed by white balancing to a target tone. Denoising is described as gentle and edge-preserving. Text areas are marked as protected regions, so their pixels pass through background cleanup unchanged. The finished panel is placed on a white background with a soft shadow. Nothing is redrawn or re-typeset; every character in the final image comes from photographed pixels.
For each image, the team kept a reference made from the same crop after rectification and the illumination and white-balance steps, before denoising or cleanup. Each processed carton face was compared with that reference before it was placed on the background. Two measurement principles were used. The first was an OCR diff: both images were upscaled and read by an open-source OCR engine with German and English language data, then word sequences were aligned and deviations listed. The second was an ink check that did not depend on reading. Pixels clearly darker than the carton background in the reference were counted as print; if such pixels became light in the processed image and most of a connected group disappeared, the group was flagged as a lost character.
The gate also showed that classical filters are not automatically safe. A speckle filter changed “130” to “30” and removed colons, while a threshold cleanup step erased the dot in a web address. Both stages were dropped. Flick notes that any step deciding what counts as noise can decide that a full stop is noise.
OCR is also a measurement system
The OCR comparison had its own uncertainty. On small print, it misread the reference image, for example reading a “5” as an “S.” A raw OCR diff therefore reported disagreements that processing had not caused. Taken at face value, such errors could produce false rejects; ignored wholesale, they could hide real changes and produce false accepts. The team separated OCR misreads of the reference from changes introduced by processing, using the independent ink check and a separate review step. The article compares this with a gauge study, in which variation from the measurement system is separated before variation in the part is assessed.
A second automated review, independent of the processing chain, checked the images in two rounds. In the first round, a composite image failed because an inserted line could not be verified reliably. The team removed the composite and used the genuine information block from the carton instead. Previous states were backed up before replacement. After publication, the delivered files were downloaded and compared with the team’s own copies; at reduced resolution, the mean absolute greyscale difference was well under one grey level. The published file was treated as the final link in the chain and checked like the earlier steps.
The practical takeaways are procedural. Define the measurand: for images carrying mandatory text, the characters matter more than appearance. Keep a separate reference from the earliest reliable processing step and never compare an output only with itself. Use two measurement principles, characterize OCR errors on the reference before trusting its verdicts, and treat any disagreement as a stop rather than a score. Classical filters should be tested as rigorously as AI tools. An independent second review should remove anything that cannot be verified, and every change should be backed up before publication. Better input photos—frontal, unwrapped, frame-filling, in daylight—make later steps easier.
The case does not reject generative models outright. Flick says generative models remain useful where nothing must be read. For images carrying mandatory information, the team now uses classical processing plus a text comparison against the original. The underlying question, borrowed from a related quality-management argument, is whether the team knows who was right, why, and what changed whenever an output and its reference disagree.
