Menu

1 / 3

How a Tiny OCR Model Finds, Reads and Orders Text on a Page Without a GPU

DEV Community: deeplearning·Ganesh Kumar·10 days ago
#Km5fa5pa
#devtodeeplearning#education#devto#dev#lines
Long article (2694 words) — no AI summary yet.
Reading 0:00
15s threshold

Hello, I'm Ganesh Kumar, and I'm building LiveReview — a Risk-Aware AI Code Review for Business-Critical Systems. Star us to help devs discover the project, give it a try, and share your feedback to help improve the product.

Many modern OCR models read a page with a large neural network, and they expect a GPU. They need CUDA and a PyTorch install that can be gigabytes in size. On a plain CPU, engines like Tesseract take seconds per page.

Indra OCR works from a much smaller model instead. It's from Datalab, and its main recognizer has about 1M parameters. It runs on ONNX Runtime, on the CPU, and the whole download is about 76 MB.

It does more than read text. For every page, it returns each line with a box, the layout blocks with labels like section header, list and table, and the reading order. You get it as markdown or JSON.

The code is Apache 2.0, and the weights use a modified OpenRAIL-M license. It's tested on Linux and macOS.

It isn't a large vision-language model.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.