RapidOCR
English | Chinese
Contents
Introduction
-
Completely open source, free and support offline deployment of multi-platform and multi-language OCR SDK
-
Chinese Advertising: Welcome to join our QQ group to download the model and test program, QQ group number: 887298230
-
Cause: Baidu paddlepaddle engineering is not very good, in order to facilitate everyone to perform OCR reasoning on various terminals, we convert it to onnx format, use ``python/c++/java/swift/c#'' to change It is ported to various platforms.
-
Name Source: Light, fast, economical and smart. OCR technology based on deep learning technology focuses on artificial intelligence advantages and small models, with speed as the mission and effect as the leading role.
-
Based on Baidu's open source PaddleOCR model and training, anyone can use this inference library, or use Baidu's paddlepaddle framework for model optimization according to their own needs.
Recent updates
🍺 2021-06-20 update
- Optimize the display of recognition results in ocrweb, and add recognition animations to demonstrate at the same time
- Update the
datasetsdirectory, add some commonly used database links
2021-06-10 update
- Add server version text recognition model, see details Extract code:30jv
2021-06-08 update
- Organize the warehouse and unify the model download path
- Improve related documentation
2021-03-24 update
- The new model is fully compatible with ONNXRuntime 1.7 or higher. Special thanks: @Channingss
- The performance of the new version of onnxruntime is improved by more than 40% compared to 1.6.0.
FAQ
SDK compilation status
Since ubuntu users are all commercial users and have the ability to compile, pre-compiled packages are not provided for the time being, and they can be compiled by themselves.
| Platform | Compilation Status | Offer Status |
|---|---|---|
| Windows x86/x64 | Download on the right | |
| Linux x64 | Not available yet, compile by yourself |
Online demo
- Web demo
- The model combination used in the demo is: server det + mobile cls + mobile rec
Directory structure
click to expand
RapidOCR ├── android # Android project directory ├── api4cpp # C language cross-platform interface library source code directory, directly compile with CMakelists.txt under the root ├── assets # Some pictures for demonstration, not a test set ├── commonlib # common library ├── cpp # C++-based project folder ├── datasets # Additional training datasets ├── dotnet # .Net program directory ├── FAQ.md # Some questions and answers ├── images # Test pictures, two typical test pictures, one is a natural scene, the other is a long text ├── include # The header file directory when compiling the c language interface library ├── ios # Apple mobile phone platform project directory ├── jvm # java-based project directory ├── lib # Compilation library file directory, used to compile the C language interface library. Binary files are not uploaded by default ├── models # Place available model file download information, based on Baidu network disk ├── ocrweb # Based on python and Flask web ├── python # python reasoning code directory ├── release # └── tools # Some conversion scripts and the like
Current Progress
- C++ example (Windows/Linux/macOS): demo
- Jvm example (Java/Kotlin): demo
- .Net example (C#): demo
- Android example: demo
- python example: demo
- IOS example: waiting for someone to contribute code
- Rewrite the C++ reasoning code according to the python version to improve the reasoning effect, and add support for gif/tga/webp format pictures
Model Conversion
- The models currently supported by the conversion script:
- 1 text direction classification model,
- 2 detection models,
- 28 recognition models (2 in simplified Chinese, 26 in traditional Chinese, etc.), totaling 31
Model Conversion Instructions
PaddleOCR-FAQ
ONNX model download
Original initiator and start-up author
Authorization
- The copyright of the OCR model belongs to Baidu, and the copyright of other engineering codes belongs to the owner of this warehouse.
- This software is licensed under LGPL. You are welcome to contribute code, submit an issue or even pr.
Contact us
-
You can contact us through QQ group: 887298230
-
If you can’t find the group number, please click here link to find the organization
-
Scan the following QR code with QQ:




