Developer Builds Nepal Bill OCR That Lets AI Read and Code Convert Data

A developer describes building a tool that turns photos of Nepali paper bills into structured, reviewable, exportable data using Next.js, Gemini, and Prisma. The problem stems from small businesses in Nepal manually retyping bills, a slow process where a single wrong digit in a total or PAN number can cause tax-filing mismatches. Generic OCR tools struggle with mixed Devanagari and English numerals, Bikram Sambat dates, and 9-digit PAN/VAT numbers. The design keeps the vision model limited to copying printed values exactly, while deterministic code handles numeral conversion, amount parsing, PAN validation, and date conversion. Responses are validated with Zod using nullable fields so a single unreadable value does not discard an entire bill.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in