Medicine strips in Indian pharmacies have no barcodes, so I built scan-to-bill with OCR. Testing it in a real pharmacy is teaching me more than building it did
retained text
If you've ever stood at a medical shop counter you've seen it. The pharmacist picks up a strip, reads the name, batch and expiry off the foil and types it into the billing software one by one. Most strips don't have a barcode, so there's nothing to scan. That's the problem I picked for Medibill. It's a pharmacy billing app where you point your phone camera at the strip, it reads the printed text with OCR and fills the bill. It runs from mobile, so no extra scanner hardware. Bit of background, I'm not from a typical CS path. I started as a graphic designer, then did WordPress, then n8n automations, and now I vibe code full apps end to end with AI. Whole thing cost me around ₹3,000 in tools. Stack for anyone curious: Next.js, React, TypeScript and Tailwind on the front. Next API routes and Node on the backend with Better Auth. PostgreSQL and SQLite with Prisma. The OCR is a separate Python service using OpenCV and ONNX. Everything runs in Docker on an Ubuntu VPS in Mumbai. The part I underestimated was everything around the scan. A pharmacy billing app isn't just a bill. You need batch and expiry tracking, FEFO so the earliest expiring stock goes out first, a proper stock ledger so every movement is accounted for, and returns that don't get counted twice if someone taps again. Invoices go out on WhatsApp because that's what customers actually use. Right now it's being tested in a real pharmacy and honestly that's been the real teacher. Testing with actual users at a counter is a different game from testing it myself, and scan accuracy is what I'm spending most of my time on now. Cashfree payment gateway got approved, so launch is close. Question for anyone who has worked with OCR: how would you improve accuracy on printed strip text? The text is small and printed on foil. Better preprocessing, a different model, or something else entirely?
document fetched 2026-11-03 00:25 · canonical https://reddit.com/r/developersIndia/comments/1xloki3/medicine_strips_in_indian_pharmacies_have_no