PaddleOCR inference in pure C++ (ONNX Runtime + OpenCV), with a web UI for drag-to-select OCR — open source
Reddit r/computervision1w4 min read
Most PaddleOCR deployments rely heavily on the Python/PaddlePaddle runtime. I built a pure C++ implementation instead: convert PP-OCR models to ONNX, run them through ONNX Runtime, and handle pre/post-processing via OpenCV. Zero Python dependencies at runtime. 🚀 Key Features: • Embedded HTTP API Server: Exposes `/ocr_detect` and `/ocr_recognize` endpoints. • Built-in Web UI (Vue): Embedded and served directly from the same C++ executable. You can drag a region-of-interest (ROI) box on an image to detect candidate text boxes, and click any box to crop & recognize it in real-time. • Cross-Build
