Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

RapidOCR

> 编程语言
Open source

Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

7.3K stars0 likes1 views
WebsiteGitHub

About

Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

=3.8-aff.svg">

Join our Discord

简体中文 | English

Introduction

RapidOCR is a completely open-source, free OCR tool that supports multi-platform, multi-language operation and rapid offline deployment. Its core advantages lie in extreme speed and extensive compatibility.

Supported Languages: Default support for Chinese and English recognition. For other supported languages, please refer to the documentation: Model List.

Project Origin: Considering that PaddleOCR still has room for optimization in engineering aspects, we innovatively converted the models in PaddleOCR into the highly compatible ONNX format to simplify and accelerate the inference deployment of OCR models on various terminal devices. Furthermore, we achieved seamless cross-platform porting based on multiple programming languages such as Python, C++, Java, and C#, enabling developers to get started easily and integrate efficiently.

Name Implication: The name "RapidOCR" embodies our core expectations for the product: Rapid (simple operation, fast response), Good & Economical (low resource consumption, high cost-effectiveness), and Intelligent (achieving accurate and efficient recognition relying on deep learning technology). We focus on leveraging the advantages of artificial intelligence to create compact yet powerful models, relentlessly pursuing speed while ensuring excellent recognition results.

User Guide:

  • Direct Deployment: If the models provided in this repository meet your needs, simply refer to the Official Documentation to quickly complete the deployment and usage of RapidOCR.
  • Custom Fine-tuning: If the existing models cannot meet specific scenario requirements, you can fine-tune them using your own data based on PaddleOCR, and then apply the optimized models to the RapidOCR deployment process to achieve personalized customization.

If you find this project helpful for your work or study, we kindly ask you to give us a ⭐ Star to provide valuable support and encouragement!

Visualization

️ Installation

bash
pip install rapidocr onnxruntime

Usage

python
from rapidocr import RapidOCR

engine = RapidOCR()

img_url = "https://www.modelscope.cn/models/RapidAI/RapidOCR/resolve/master/resources/test_files/ch_en_num.jpg"
result = engine(img_url)
print(result)

result.vis("vis_result.jpg")

Docker

Docker development environments are available for all supported inference engines:

bash
# Build and test with ONNX Runtime (CPU)
make build-onnxruntime-cpu
make test-onnxruntime-cpu

# Or use any engine: onnxruntime-gpu, tensorrt, paddle, openvino, pytorch, mnn
make build-tensorrt
make shell-tensorrt

See docker/README.md for full setup instructions, GPU configuration, and troubleshooting.

Documentation

Full documentation can be found on docs, in Chinese.

Who use? (more)

  • Docling
  • CnOCR
  • api-for-open-llm
  • arknights-mower
  • pensieve
  • genshin_artifact_auxiliary
  • ChatLLM
  • langchain
  • Langchain-Chatchat
  • JamAIBase
  • PAI-RAG
  • ChatAgent_RAG
  • OpenAdapt
  • Umi-OCR

For more projects that use RapidOCR, you are welcome to register at the registration address. Registration is solely for product promotion.

Acknowledgements

  • Many thanks to PaddleOCR for everything.
  • Many thanks to PaddleOCR2Pytorch for providing the converted PyTorch format models.
  • Many thanks to PaddleX for providing the document models.
  • Many thanks to DeliciaLaniD for fixing the misplaced start position of scan animation in ocrweb.
  • Many thanks to zhsunlight for the suggestion about parameterized call GPU reasoning and the careful and thoughtful testing.
  • Many thanks to lzh111222334 for fixing some bugs of rec preprocessing under python version.
  • Many thanks to AutumnSun1996 for the suggestion in the #42.
  • Many thanks to DeadWood8 for providing the document which packages rapidocr_web to exe by Nuitka.
  • Many thanks to Loovelj for fixing the bug of sorting the text boxes. For details see issue 75.

Contribution Guide

This repository contains the Python component of RapidOCR. Components for other languages have been migrated to separate repositories.

For the complete workflow on contributing to Python development, please refer to: Python CONTRIBUTING.

Code Contributors

Sponsors & Backers

RapidOCR is an Apache2.0-licensed open source project with its ongoing development made possible entirely by the support of these awesome backers. If you'd like to join them, please consider sponsoring RapidOCR's development.

Sponsors

Sponsors Application Introduction
Quicker Your fingertip toolbox

Backers

  </a><br />
  <sub><a href="https://github.com/zg-young">@zg-young</a></sub>
</td>
<td align="center">
  <a href="https://github.com/Eunsolfs">
    
  </a><br />
  <sub><a href="https://github.com/Eunsolfs">@Eunsolfs</a></sub>
</td>
<td align="center">
  <a href="https://github.com/youzzhang">
    
  </a><br />
  <sub><a href="https://github.com/youzzhang">@youzzhang</a></sub>
</td>

Citation

If you find this project useful in your research, please consider cite:

bibtex
@misc{RapidOCR 2021,
    title={{Rapid OCR}: OCR Toolbox},
    author={RapidAI Team},
    howpublished = {\\url{https://github.com/RapidAI/RapidOCR}},
    year={2021}
}

⭐️ Stargazers over time

⚖️ License

License

Source code

RapidOCR source code and engineering components are copyright RapidOCR Authors and licensed under the Apache License, Version 2.0. See LICENSE.

Models

The bundled and hosted OCR model files are derived from official PaddleOCR models. Copyright in the upstream model weights is held by Baidu and/or the respective PaddleOCR rights holders.

The applicable upstream models are distributed under the Apache License, Version 2.0. Converted model artifacts, including ONNX representations produced by RapidOCR, are redistributed under the same license terms.

RapidOCR does not claim ownership of the upstream model weights. Model-specific sources, hashes, attribution, and conversion information are documented in MODEL_LICENSES.md.

Issues· 30 open

View all issuesOpen on GitHub
  • #744

    Bug: Default direction classifier rotates long upright lines by 180° (2 to 3 % of the words of a document)

    Updated Oct 1, 2026
  • #743

    PP-OCRv6 rec_medium / det_small: denormal weights make CPU inference 4–11× slower (zeroing them gives identical output)

    Updated Sep 30, 2026
  • #740

    Bug: limit_side_len and limit_type=max cannot be set at a time

    Updated Sep 18, 2026
  • #720

    Arabic recognition cannot be paired with the multilingual detector — "Unsupported configuration"

    Updated Sep 17, 2026
  • #737

    Make the OpenCV build selectable instead of hard-requiring opencv-python

    Updated Sep 15, 2026
  • #738

    【功能增强建议】希望后续版本给engine()再加一个图片类型,就是传内存地址(和内存地址长度)

    Updated Sep 8, 2026
  • #739

    Licence and notices for the three ONNX models bundled with rapidocr 3.9.2

    Updated Sep 8, 2026
  • #729

    rapidocr v3.9.2 中 模型支持的lang_type有些混乱

    Updated Sep 4, 2026
  • #733

    官方站点英文支持进行时

    Updated Sep 4, 2026
  • #714

    Bug: TextClassifier ONNX session is eagerly loaded even when Global.use_cls is set to False

    Updated Aug 18, 2026

> Tags

Pythonchineseocrcrnndbneteasyocr

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 2, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言