TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 229 subscribers
Post #24888 22
LightOCRX: A lightweight C++ implementation of PaddleOCR

Hello everyone,

I'm working on a project called LightOCRX. It's a full Paddle OCR pipeline (Detection, Classification, Recognition) written in C++ with haru pdf C library.

Most OCR solutions today are heavy unportable non reproducible Python programs with several hundred megabytes of dependencies. I wanted something portable, lightweight, easy on system resources and fast to compile.

Features:

* ONNX Runtime for inference using Paddle ONNX models.

* Using stb_image to keep the program tiny (no OpenCV), and clipper library to handle Paddle text detection logic.

* Searchable PDF, text only PDF or plaintext export.

* Handles rotated text correction and deskewing for images (mostly) using paddle classifier.

Link: https://github.com/IvanRolero/LightOCRX

Any feedback is welcome.

https://redd.it/1s7f86q
@r_cpp
GitHub GitHub - IvanRolero/LightOCRX: Lightweight OCR software inference using Onnxruntime and Paddle Models Lightweight OCR software inference using Onnxruntime and Paddle Models - IvanRolero/LightOCRX
More from @r_cpp
  1. Oct 6, 2026Tuning a Server for Benchmarking https://david.alvarezrosa.com/posts/tuning-a-server-for-b…
  2. Oct 6, 2026boost.org has been rebuilt: new profiles, badges, search, and library filtering The Boost…
  3. Oct 6, 2026When (Not) to Use alloca() https://voithos.io/articles/when-not-to-use-alloca/ https://red…
  4. Oct 6, 2026MSVC Build Tools Preview updates – September 2026 https://devblogs.microsoft.com/cppblog/m…
  5. Oct 6, 2026I built MrDocs, an open-source C++ reference doc generator on the Clang/LLVM AST. Looking…
  6. Oct 6, 2026WasmBolt — The LLVM Project in your browser https://anutosh21.github.io/WasmBolt/ https://…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →