* * * GUIDES * * *
Practical OCR, with receipts.
How to OCR a receipt in Python
Extract text from receipt photos in Python with three lines of code — handles crumple, blur and skew. Includes parsing totals and a full runnable example.
Convert a PDF to Markdown in Python
Convert scanned PDF pages to Markdown in Python. Download a synthetic invoice, the actual OCR output and a dependency-free script to test your RAG ingestion step.
Extract text from invoices in Node.js
Read PDF and scanned invoices in Node.js with a few lines: full text or markdown with line-item tables, then parse amounts. Runnable example included.
OCR a PDF from the command line
Turn a scanned PDF into text or markdown from your terminal with a single curl command. Plus jq recipes for extracting pages and piping into other tools.
Parse Indian GST invoices in Python
OCR Indian GST invoices in Python, extract GSTINs and line items from markdown tables, and catch misreads with the GSTIN checksum and a totals check.
Convert a bank statement PDF to CSV in Python
OCR scanned or PDF bank statements in Python, parse the transaction tables into CSV, and verify every row against the running balance.
Validate container numbers from shipping documents
Extract container numbers from OCR'd bills of lading and packing lists in Python, then catch misreads with the ISO 6346 check digit.
Extract tables from a PDF into pandas
Turn tables in scanned or digital PDFs into pandas DataFrames and CSV files in Python, from OCR markdown output. No ruling lines or text layer needed.