// Case study

TTB Label Verification

Checks alcohol-label photos against COLA application data. The model perceives; the code judges.

TTB Label Verification in offline mock mode. Two sample labels checked against applications.csv: 01-bourbon-clean.png is all match, and 07-warning-wrong-word.png has one issue.
Field-by-field result for sample label 07-warning-wrong-word.png in offline mock mode. Most fields match, country of origin matches with a minor naming difference, and the government warning is a mismatch because the label says "health issues" where the required text says "problems."
Generated sample label 01-bourbon-clean.png from TTB Label Verification: an Old Tom Distillery Kentucky Straight Bourbon Whiskey label used as a clean match case.

01 / 03

TTB Label Verification in offline mock mode. Two sample labels checked against applications.csv: 01-bourbon-clean.png is all match, and 07-warning-wrong-word.png has one issue.

// Problem

The problem

A compliance agent comparing an alcohol label to its COLA application needs to see, in a few seconds, which fields match, which do not, and which need a second look. This is a standalone proof of concept. It does not integrate with the legacy COLA system.

// What we built

What we built

A browser app checks a label image against the values on the application. The vision model only transcribes what is on the label. Deterministic code decides the verdict. The model never sees the expected values, so it cannot talk itself into a match.

Providers are OpenAI gpt-4o, Anthropic, any OpenAI-compatible local vision model, or an offline mock that needs no API key. Zod validates the request and the model's response. A Netlify function is the only API.

// Stack

Stack

// Notable engineering

Notable engineering

// Results

What the measurements said

On a 13-label batch against gpt-4o, at the app's default concurrency of 5, the mean was 2.85 seconds, the median 2.6 seconds, and 12 of 13 labels finished under 5 seconds. The slowest was 5.6 seconds.

The same run caught every wording violation and the missing-warning case, and missed two of the four typography violations: a title-case warning prefix, and a warning body set in bold. Typography is the weak spot. The app treats it as needs-review rather than an automatic denial, and the original photo stays next to the result.

The hosted demo runs real gpt-4o extraction and only accepts traffic from the United States. Locally, with no API key, it stays in offline mock mode.

// Links

See it