Comparison
layoutparser vs onnxtr vs rapidocr vs surya-ocr
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A unified toolkit for Deep Learning Based Document Image Analysis
Likely abandoned. No release or commit for years (last release over 4 years ago).
pip install layoutparserOnnx Text Recognition (OnnxTR): docTR Onnx-Wrapper for high-performance OCR on documents.
Actively maintained. Last release 8 days ago, commits in 12 of the last 26 weeks. A safe choice.
pip install onnxtrAwesome OCR Library
Actively maintained. Last release 8 weeks ago, commits in 21 of the last 26 weeks. A safe choice.
pip install rapidocrOCR, layout, reading order, and table recognition in 90+ languages.
Actively maintained. Last release 3 weeks ago, commits in 14 of the last 26 weeks. A safe choice.
pip install surya-ocrIn short
- layoutparser looks abandoned: avoid it for new projects.
- rapidocr is the most used: 7.4M downloads a month, 30× more than onnxtr.
- Maintenance is comparable: surya-ocr 89, rapidocr 85, onnxtr 75 on Pythie’s Index.
- onnxtr is growing fastest: downloads +55% over the last month.
- Safe default for a new project: rapidocr.
Side by side
| Metric | layoutparser | onnxtr | rapidocr | surya-ocr |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 9 | Pythie’s Index: 75 | Pythie’s Index: 85 | Pythie’s Index: 89 |
| Verdict | Likely abandoned | Actively maintained | Actively maintained | Actively maintained |
| Downloads / month | 91.5K | 242K | 7.4M | 137K |
| Downloads, month over month | -5% | +55% | +33% | -4% |
| GitHub stars | 5.8K | 203 | 8.7K | 21.6K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 9 | 5 | 78 | 10 |
| Last release | Apr 6, 2022 | Nov 23, 2026 | Oct 8, 2026 | Nov 13, 2026 |
| Releases, 12 months | 0 | 3 | 13 | 9 |
| Weeks with commits | 0 / 26 | 12 / 26 | 21 / 26 | 14 / 26 |
| Recent contributors | 7 | 4 | 20 | 5 |
| First release | Jun 2020 | May 2024 | Mar 2025 | Jan 2024 |
| Python versions | 3.6 – 3.9 | 3.11 – 3.13 | 3.8 – 3.13 | – |
| License | Apache-2.0 | Apache-2.0 | Apache-2.0 | Apache-2.0 |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.