Sitemap
Data Science Collective

Advice, insights, and ideas from the Medium data science community

Member-only story

I Tested Chandra OCR: Converting Handwritten & Scanned Documents into Structured, Layout-Aware HTML

7 min readMar 2, 2026

--

👨🏾‍💻 GitHub ⭐️ | 👔 LinkedIn | 📝 Medium | ☕️ Ko-fi | 🌐 InventaAI Blog

Press enter or click to view image in full size
Photo by Author

Introduction

I recently spent time integrating Chandra OCR into a scan, a handwritten, lab report with a complex table and formula, included in the documents pipeline running locally with an NVIDIA A10G GPU. What I found was something genuinely different: a model that outputs not just text, but structured HTML with bounding boxes, layout labels, tables with proper colspan and rowspan, inline math, and checkbox states. I have a build pipeline for a scanned lab report with merged table cells, a handwritten note, a financial form with checkboxes, and a research paper full of LaTeX equations. Traditional OCR tools, such as Tesseract, PaddleOCR, and even Google Vision, treat documents as bags of text. They read words, but they don’t understand pages.

This post walks through everything: what Chandra is, how it works, how to install and run it on your own GPU, and how to reconstruct clean Word documents from its output.

--

--

Md Monsur ali
Md Monsur ali

Written by Md Monsur ali

🚀 AI Engineer | Data Scientist | Agentic System | MLP, NLP & LLM Enthusiast. Let's connect on AI, data science & innovation!

Data Science Collective
Data Science Collective

Published in Data Science Collective

Advice, insights, and ideas from the Medium data science community