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.

