2021-07-17 16:50:01 +08:00
2021-06-10 11:44:57 +08:00
2021-06-08 22:35:08 +08:00
2021-06-08 22:35:08 +08:00
2021-07-04 08:58:25 +08:00
2021-06-08 22:35:08 +08:00
2021-04-24 09:57:23 +08:00
2021-06-20 18:24:02 +08:00
2021-01-17 22:13:44 +08:00
2021-02-06 12:06:40 +08:00
2021-06-08 22:35:08 +08:00
2021-01-17 22:13:44 +08:00
2021-06-08 22:35:08 +08:00
2021-06-08 09:15:16 +08:00
2021-07-15 10:13:18 +08:00
2021-07-17 16:50:01 +08:00
2021-06-08 22:35:08 +08:00
2021-03-27 10:35:31 +08:00
2021-04-07 07:56:56 +08:00
2021-06-20 18:58:14 +08:00
2021-03-01 14:30:33 +08:00
2021-06-20 18:24:02 +08:00
2021-07-17 14:42:03 +08:00

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 datasets directory, add some commonly used database links

2021-06-10 update

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 CMake-windows-x86-x64 Download on the right
Linux x64 CMake-linux 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:

Demo

Demonstration with C++/JVM

Demonstration with .Net

Demonstratioin with multi_language

S
Description
RapidOCR - lightweight ONNX OCR
Readme Apache-2.0
74 MiB
0 Stars 1 Watchers 0 Forks
Languages
Python 81.3%
Jupyter Notebook 18.6%
Makefile 0.1%