Justin Flick, writing for SOMUVA UG, which runs the German-language online shop vapechamp.de in Lüdenscheid, has described how a generative image model changed legally required text on product photos, and how a deterministic pipeline checked against an independent reference replaced it.
The case follows Gleb Tsipursky’s argument in “AI Inspection Needs A Disagreement Audit Before Quality Teams Scale It” (Metrology News, 15 September 2026) that quality leaders should measure disagreements between automated inspection and qualified human judgment before reducing human review. Flick takes the principle over directly: an automated result is only as trustworthy as the independent reference it has been checked against.
Clean images, unchanged information
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 legally required manufacturer and importer names and addresses, warning texts and contact numbers. Their appearance could improve, but the information had to stay identical; the measurand, Flick writes, was the printed text, not the image.
A convincing result that did not hold up
A first attempt used a generative model, given a straightened carton image and an explicit instruction to keep every character, number and symbol identical. The output looked professional — sharp print, even light, clean background — but comparison with the source showed the digits “2801” turned into “2001”, a phone number with wrong digits, a comma turned into a full stop and elsewhere a full stop into a comma. The changes were plausible and hard to spot at a glance. The images were discarded and none was published. A generative model, Flick concludes, produces what text plausibly looks like, not what was printed, which makes visual inspection too weak to serve as the reference.
Every glyph from photographed pixels
The replacement is a deterministic chain: perspective rectification from four corner points, flattening of uneven lighting by estimating the background illumination and dividing it out, white balancing to a target tone, and gentle edge-preserving denoising. Text blocks are protected regions whose pixels pass through the background clean-up unchanged, and the result is placed on a white background with a soft shadow. Nothing is redrawn or re-typeset; every character derives from photographed pixels.
Reference image and acceptance gate
Each image kept a reference: the crop after rectification and white balance only, before denoising or clean-up. Processed panels were compared with it using two principles. The first is an OCR diff, reading both images with an open-source engine using German and English data after upscaling and listing every deviation in aligned word sequences. The second is an ink check that reads nothing: pixels clearly darker than the carton background in the reference count as print, and a connected group that turns light and largely disappears is flagged as a lost character.
The gate also caught conventional filters. 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.
OCR has its own measurement uncertainty
An OCR diff has its own error. On small print it misread the reference, for example reading a “5” as an “S”, so a raw diff reports disagreements the processing did not cause — false rejects if taken at face value, false accepts if ignored wholesale. Flick compares this to a gauge study, in which the variation of the measurement system is separated out before variation is attributed to the part; here the ink check and a separate review step did that work. He links it to Tsipursky’s third step, to identify the source of the disagreement rather than assuming the person or the model must be wrong, and draws the rule 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; it was removed and the genuine information block from the carton used instead. The previous state was backed up before any replacement. After publication the delivered files were downloaded and compared with the company’s own; at reduced resolution the mean absolute greyscale difference was well under one grey level.
Practical takeaways for quality teams
- Define the measurand: for mandatory text, the characters matter, not the appearance.
- Keep a reference from the earliest reliable processing step and never compare an output only with itself.
- Use two principles, such as an OCR text diff and a pixel-level ink check, and characterise the OCR’s own errors first.
- Treat disagreement as a stop, and test classical filters as rigorously as AI tools.
- Add an independent second review, back up before every change and pixel-compare published files.
- Improve the input with frontal, unwrapped, frame-filling photos in daylight.
Generative models, Flick adds, remain useful for images where nothing has to be read; images carrying mandatory information now get classical processing plus a text comparison against the original. He ends on Tsipursky’s question — when the machine and a qualified person disagree, is it known who was right, why, and what was changed afterwards — applied to processed images: that answer is wanted before anything is published.
