Agentic AI developmentCase studyConsumer Products & Manufacturing

Using Claude to catch a hidden printing defect before it ships.

Some of Stupell's product artwork was sourced from seamless, mirror-tiled patterns. When a single product image got cropped out of that tile without trimming to the boundary, mirrored fragments of the design bled in from the edges — a defect that's easy to miss at a glance. We replaced a brittle computer-vision detector with a Claude vision classifier tuned specifically to catch it.

Client

Stupell Industries

Defect

Mirrored / bled-in tile artifacts

Role

AI Engineer

Rows of framed canvas prints being inspected on a production line
The challenge

Some of Stupell's source artwork was authored as a seamless, mirror-tiled repeating pattern — common for wallpaper, fabric, and watercolor-style designs. When a single product canvas was cropped out of that tile without trimming all the way to the tile boundary, small mirrored or rotated fragments of the same design bled in from one or more borders. The main subject still looked untouched in the center, so the defect was easy to miss on a quick look — especially in busy, multi-element compositions (rows of trees, fields of stars, painterly textures) where a mirrored fragment just looks like "another one of the same kind of element" instead of a duplicate.

Our approach

How we approached it

01

Start with classical computer vision

The first version used OpenCV: estimate the background color, detect barcode/label furniture, then flag any foreground blob that touched the canvas border away from the main subject.

02

Find where it breaks

On a real high-resolution production file, fine texture edges (leaf veins, petal edges) chained into one canvas-spanning blob, silently swallowing the barcode regions and missing real defects — the heuristic needed constant re-tuning per edge case.

03

Replace it with a Claude vision classifier

We wrote a detailed system prompt encoding the actual defect taxonomy — mirror-fold symmetry, corner kaleidoscope patterns — and what to explicitly ignore, like barcodes or legitimate repeating materials such as wood grain or brick.

04

Calibrate for high recall

A missed defect costs far more than a false alarm, so the prompt resolves genuinely ambiguous cases toward flagging them for review rather than passing silently.

What we delivered
  1. 01A Claude vision classifier tuned to the specific 'repeat-tile bleed' printing defect, not a general anomaly detector
  2. 02A taxonomy-driven prompt that distinguishes the defect from barcodes, labels, and legitimate repeating materials like wood grain or brick
  3. 03High-recall calibration so ambiguous cases get flagged for human review instead of silently passing
  4. 04A minimal localhost API returning just a true/false flag and confidence score, callable from the existing production pipeline
  5. 05Support for both flattened product images and print-ready PDFs, with a low-memory extraction path for large files

Built with the Claude API (vision), Flask, OpenCV, and PyMuPDF/poppler for PDF extraction.

Claude APIFlaskOpenCVPyMuPDFPython

Any issues that have occurred during our hundreds of hours of work together have been addressed and improved on.

Todd Stupell

Owner, Stupell Industries

Verified review

Clutch5.0
The outcome

The classifier now runs as a QA gate ahead of print, catching mirrored and bled-in artwork that's genuinely easy to miss at a glance — without the constant threshold-tuning the original computer-vision approach needed every time a new edge case showed up.

Ready when you are

Have a similar product idea?

Share the workflow, product idea, or knowledge problem you're solving, and we'll help define the smartest first build.