// Case Study

Barcode and Label OCR for Nuvai: Reading Medication Vials with Zero Wrong-Drug Passes

← All case studies
// client engagement
Written by Utshab Chakraborty, Founder & CEO, NextGen Coding Company
Technically reviewed by Sanjib Pal, Solution Architect
Published Last updated

Client Background

Nuvai Medical Technologies is developing medication-preparation verification. Its first demo had to read real medication vials in real lighting, on a small offline device.

The Problem

Medication labels are small, curved, glossy and full of look-alike names. Reading them wrong is not an inconvenience; it is a safety risk.

  • Several barcode formats, some damaged or partly hidden.

  • Sideways, light-on-dark and cut-off print, including dates split by the edge of the label.

  • Look-alike drug pairs that must never be confused.

  • Product codes that come in multiple formats and cannot be safely guessed.

Our Solution

  • Barcode decoding with check-digit verification across the common pharmaceutical formats, read straight from the camera frame.

  • On-device OCR using lightweight open-source models, with an optional GPU-accelerated mode giving identical results on the edge device.

  • Extra passes for sideways and inverted print, on a time budget that stops as soon as the needed fields are found.

  • Extraction of product code, name, strength, lot and expiry, each with its own confidence score.

  • Product codes resolved by lookup against a validated drug list, never guessed, with explicit look-alike rules.

  • Date fixes found in QA and code review, such as a date cut by the label edge, closed before the demo build.

Results

  • No wrong drug, look-alike or expired vial passed on its own across about 13,000 checks.

  • Zero of 210 deliberately wrong drug pairings were let through, and look-alike pairs never passed.

  • Damaged barcodes were never read as a wrong number; they went to review instead.

  • No wrong expiry verdict on the validation vials.

Why It Matters

“Let me add Nuvai’s appreciation for all of the hard work. Ryan and Tyler shared with me the level of documentation, professionalism, and timeliness displayed throughout. It is much appreciated. I am glad we found you and have a few projects we want to scope going forward after this show occurs.” — Stephen F. Eckel, PharmD, MHA, Founder, Nuvai Medical Technologies

OCR projects succeed or fail on the hard cases. Combining barcodes, text and a validated reference list, and treating uncertainty as a reason to ask a person, is how document and label reading becomes trustworthy in regulated work.

Call to Action

Have labels, forms or documents that need to be read reliably? Book a call with NextGen Coding Company about an OCR proof of concept.

// case study faq

Frequently asked questions

What did NextGen actually build in this engagement?
NextGen designed and shipped a production system end to end: architecture, data model, application code, integrations, security review, and deployment. A senior U.S.-based team owned delivery from discovery through launch, and the client kept full ownership of the codebase and cloud accounts.
How long does an engagement like this take?
Most engagements of this shape run eight to sixteen weeks from kickoff to production. A discovery and architecture sprint takes two to three weeks, the first working release lands around week six, and the remaining time covers hardening, integrations, and rollout support.
What technologies were used?
Typical stacks on our engagements are React and TypeScript on the front end, Node.js or Python services on the back end, PostgreSQL for data, and AWS or Azure for infrastructure, with AI and machine-learning components where they measurably improve accuracy or throughput.
Can NextGen deliver a similar outcome for us?
Yes. We start with a paid discovery sprint that produces an architecture, a scope, and a fixed price or a staffed team plan. From there you can proceed with a fixed-scope build or a dedicated team. Book a call and we will scope your project against this case study.
// let's build something

What do you need built next?

Tell us about your design, MVP deadline, OCR workflow or computer-vision feature. Get professional help scoping the next working version. We respond within one business day.

New York City, USAContact form
// what to expect
  • A focused first version, not an open-ended backlog
  • POC, MVP or a defined product workstream
  • Your inputs, delivery risks and next steps
  • U.S.-based engineering, serving teams nationwide
Scope your build

Inbound sales only. All form information is encrypted in transit.