OpenOCR

TopduApache-2.0活跃维护

一站式通用 OCR 开源工具箱,集训练评测基准、商用级文字识别与文档解析系统于一体,并复现多篇学术论文的核心实现。

OpenOCR: An Open-Source Toolkit for General-OCR Research and Applications, integrates a unified training and evaluation benchmark, commercial-grade OCR and Document Parsing systems, and faithful reproductions of the core implementations from a wide range of academic papers.

develop0.0.1发布于 2024-11-23 14:07 UTC1,495star152fork同步于 2026-11-07 07:31 UTC

怎么上手

由 README 提炼,执行前请确认
pip install openocr-python
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

复旦 FVL 实验室开源的通用 OCR 工具包,统一训练评测并集成商用级文档解析系统

一站式通用 OCR 开源工具箱,集训练评测基准、商用级文字识别与文档解析系统于一体,并复现多篇学术论文的核心实现。

核心能力

  • 集成统一训练与评测基准,覆盖检测识别等任务
  • 提供 0.1B 参数的 OpenDoc 超轻量文档解析系统
  • 两阶段流水线:PP-DocLayoutV2 版面分析加 UniRec 统一识别
  • UniRec-0.1B 统一识别文本、公式与表格
  • 支持中英文文档解析,OmniDocBench v1.5 达 90.57%

容易踩的坑

OpenDoc 依赖外部版面分析模型 PP-DocLayoutV2,需另行准备;模型权重需从 HuggingFace 或 ModelScope 下载;README 被截断,完整安装与运行步骤需查阅 QUICKSTART.md

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

1 个版本develop0.0.1
  1. develop0.0.1OpenOCR-develop最新正式版2024-11-23 · 2024-11-23 14:07 UTC

    OpenOCR det model: openocr_det_repvit_ch.pth (mobile), configs/det/dbnet/repvit_db.yml OpenOCR rec model: openocr_det_svtrv2_ch.pth (server), configs/rec/svtrv2/svtrv2_ch.yml OpenOCR rec model: openocr_det_repsvtr_ch.pth (mobile), configs/rec/svtrv2/repsvtr_ch.yml

    OCR_e2e_img.tar for demo_gradio.py

    ONNX Model: Det model: openocr_det_model.onnx (mobile), configs/det/dbnet/repvit_db.yml Rec model: openocr_rec_model.onnx (mobile), configs/rec/svtrv2/repsvtr_ch.yml

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    English | 简体中文


    OpenOCR is an open-source toolkit developed by the OCR team from FVL Lab, Fudan University, under the guidance of Prof. Yu-Gang Jiang and Prof. Zhineng Chen. It focuses on 「General-OCR」 tasks, including Text Detection and Recognition, Formula and Table Recognition, as well as Document Parsing and Understanding. The toolkit integrates a unified training and evaluation benchmark, commercial-grade OCR and Document Parsing systems, and faithful reproductions of the core implementations from a wide range of academic papers.

    OpenOCR aims to build a comprehensive open-source ecosystem for General-OCR, bridging academic research and real-world applications, and fostering the collaborative development and widespread deployment of OCR technologies across both research frontiers and industrial scenarios. We welcome researchers, developers, and industry partners to explore the toolkit and share feedback.

    🚀 Quick Start

    Features

    • 🔥OpenDoc-0.1B: Ultra-Lightweight Document Parsing System with 0.1B Parameters

      • ⚡[Quick Start] HuggingFace ModelScope [Local Demo]

        • An ultra-lightweight document parsing system with only 0.1B parameters.
        • Two-stage pipeline:
          1. Layout analysis via PP-DocLayoutV2.
          2. Unified recognition of text, formulas, and tables using the in-house model UniRec-0.1B
            • In the original version of UniRec-0.1B, only text and formula recognition were supported. In OpenDoc-0.1B, we rebuilt UniRec-0.1B to enable unified recognition of text, formulas, and tables.
        • Supports document parsing for Chinese and English.
        • Achieves 90.57% on OmniDocBench (v1.5), outperforming many document parsing models based on multimodal large language models.
    • 🔥UniRec-0.1B: Unified Text and Formula Recognition with 0.1B Parameters

    • 🔥OpenOCR: A general OCR system with accuracy and efficiency

    • 🔥SVTRv2: CTC Beats Encoder-Decoder Models in Scene Text Recognition (ICCV 2025)

      • [Doc] arXiv [Model] [Datasets] [Config, Training and Inference] [Benchmark]
      • Introduction
        • A unified training and evaluation benchmark (on top of Union14M) for Scene Text Recognition
        • Supports 24 Scene Text Recognition methods trained from scratch on the large-scale real dataset Union14M-L-Filter, and will continue to add the latest methods.
        • Improves accuracy by 20-30% compared to models trained based on synthetic datasets.
        • Towards Arbitrary-Shaped Text Recognition and Language modeling with a Single Visual Model.
        • Surpasses Attention-based Encoder-Decoder Methods across challenging scenarios in terms of accuracy and speed
      • Get Started with training a SOTA Scene Text Recognition model from scratch.

    Ours OCR algorithms

    • ScriptMoE (Xingsong Ye, Yongkun Du, Jiaxin Zhang, Zhixian Li, Chong Sun, Chen Li, Jing Lyu, Lianwen Jin, Zhineng Chen*. All-in-One Multilingual Scene Text Recognition with Script-aware Mixture-of-Experts, Preprint. Doc, Code, Demo&Model)
    • UniRec-0.1B (Yongkun Du, Zhineng Chen, Yazhen Xie, Weikang Bai, Hao Feng, Wei Shi, Yuchen Su, Can Huang, Yu-Gang Jiang. UniRec-0.1B: Unified Text and Formula Recognition with 0.1B Parameters, Preprint. Doc, Paper)
    • MDiff4STR (Yongkun Du, Miaomiao Zhao, Songlin Fan, Zhineng Chen*, Caiyan Jia, Yu-Gang Jiang. MDiff4STR: Mask Diffusion Model for Scene Text Recognition, AAAI 2026 Oral. Doc, Paper)
    • CMER (Weikang Bai, Yongkun Du, Yuchen Su, Yazhen Xie, Zhineng Chen*. Complex Mathematical Expression Recognition: Benchmark, Large-Scale Dataset and Strong Baseline, AAAI 2026. Doc, Paper)
    • TextSSR (Xingsong Ye, Yongkun Du, Yunbo Tao, Zhineng Chen*. TextSSR: Diffusion-based Data Synthesis for Scene Text Recognition, ICCV 2025. Paper, Code)
    • SVTRv2 (Yongkun Du, Zhineng Chen*, Hongtao Xie, Caiyan Jia, Yu-Gang Jiang. SVTRv2: CTC Beats Encoder-Decoder Models in Scene Text Recognition, ICCV 2025. Doc, Paper)
    • IGTR (Yongkun Du, Zhineng Chen*, Yuchen Su, Caiyan Jia, Yu-Gang Jiang. Instruction-Guided Scene Text Recognition, TPAMI 2025. Doc, Paper)
    • CPPD (Yongkun Du, Zhineng Chen*, Caiyan Jia, Xiaoting Yin, Chenxia Li, Yuning Du, Yu-Gang Jiang. Context Perception Parallel Decoder for Scene Text Recognition, TPAMI 2025. PaddleOCR Doc, Paper)
    • SMTR&FocalSVTR (Yongkun Du, Zhineng Chen*, Caiyan Jia, Xieping Gao, Yu-Gang Jiang. Out of Length Text Recognition with Sub-String Matching, AAAI 2025. Doc, Paper)
    • DPTR (Shuai Zhao, Yongkun Du, Zhineng Chen*, Yu-Gang Jiang. Decoder Pre-Training with only Text for Scene Text Recognition, ACM MM 2024. Paper)
    • CDistNet (Tianlun Zheng, Zhineng Chen*, Shancheng Fang, Hongtao Xie, Yu-Gang Jiang. CDistNet: Perceiving Multi-Domain Character Distance for Robust Text Recognition, IJCV 2024. Paper)
    • MRN (Tianlun Zheng, Zhineng Chen*, Bingchen Huang, Wei Zhang, Yu-Gang Jiang. MRN: Multiplexed Routing Network for Incremental Multilingual Text Recognition, ICCV 2023. Paper, Code)
    • TPS++ (Tianlun Zheng, Zhineng Chen*, Jinfeng Bai, Hongtao Xie, Yu-Gang Jiang. TPS++: Attention-Enhanced Thin-Plate Spline for Scene Text Recognition, IJCAI 2023. Paper, Code)
    • SVTR (Yongkun Du, Zhineng Chen*, Caiyan Jia, Xiaoting Yin, Tianlun Zheng, Chenxia Li, Yuning Du, Yu-Gang Jiang. SVTR: Scene Text Recognition with a Single Visual Model, IJCAI 2022 (Long). PaddleOCR Doc, Paper)
    • NRTR (Fenfen Sheng, Zhineng Chen, Bo Xu. NRTR: A No-Recurrence Sequence-to-Sequence Model For Scene Text Recognition, ICDAR 2019. Paper)

    Recent Updates

    • 2026.09.21: 🔥 Releasing ScriptMoE: All-in-One Multilingual Scene Text Recognition with Script-aware Mixture-of-Experts. Accessible in Doc and Demo&Model.
    • 2026.02.12: 🔥 Releasing openocr-python 0.1.5: Support the PDF file as an input; Parallel recognition of document elements; Add skill for OpenClaw Agent. Accessible in Doc.
    • 2026.02.06: 🔥 Releasing openocr-python 0.1.3, and using a unified interface for OpenOCR, Document Parsing OpenDoc-0.1B, and UniRec-0.1B. Accessible in Doc.
    • 2026.01.13: 🔥 Releasing CMER code and MER-17M dataset.
    • 2026.01.07: 🔥 Releasing UniRec40M dataset, which includes 40 million instances of recognition data comprising text, formulas, and text-formula mixed content.
    • 2025.12.25: 🔥 Releasing OpenDoc-0.1B: Ultra-Lightweight Document Parsing System with 0.1B Parameters
    • 2025.11.08: Our paper MDiff4STR is accepted by AAAI 2026 (Oral). Accessible in Doc.
    • 2025.11.08: Our paper CMER is accepted by AAAI 2026. Accessible in Doc.
    • 2025.08.20: 🔥 Releasing UniRec-0.1B: Unified Text and Formula Recognition with 0.1B Parameters
    • 2025.07.10: Our paper SVTRv2 is accepted by ICCV 2025. Accessible in Doc.
    • 2025.07.10: Our paper TextSSR is accepted by ICCV 2025. Accessible in Code.
    • 2025.03.24: 🔥 Releasing the feature of fine-tuning OpenOCR on a custom dataset: Fine-tuning Det, Fine-tuning Rec
    • 2025.03.23: 🔥 Releasing the feature of ONNX model export for wider compatibility.
    • 2025.02.22: Our paper CPPD is accepted by TPAMI. Accessible in Doc and PaddleOCR Doc.
    • 2024.12.31: Our paper IGTR is accepted by TPAMI. Accessible in Doc.
    • 2024.12.16: Our paper SMTR is accepted by AAAI 2025. Accessible in Doc.
    • 2024.12.03: The pre-training code for DPTR is merged.
    • 🔥 2024.11.23 release notes:

    Reproduction schedule:

    Scene Text Recognition

    MethodVenueTrainingEvaluationContributor
    CRNNTPAMI 2016✅✅
    ASTERTPAMI 2019✅✅pretto0
    NRTRICDAR 2019✅✅
    SARAAAI 2019✅✅pretto0
    MORANPR 2019✅✅
    DANAAAI 2020✅✅
    RobustScannerECCV 2020✅✅pretto0
    AutoSTRECCV 2020✅✅
    SRNCVPR 2020✅✅pretto0
    SEEDCVPR 2020✅✅
    ABINetCVPR 2021✅✅YesianRohn
    VisionLANICCV 2021✅✅YesianRohn
    PIMNetACM MM 2021TODO
    SVTRIJCAI 2022✅✅
    PARSeqECCV 2022✅✅
    MATRNECCV 2022✅✅
    MGP-STRECCV 2022✅✅
    LPVIJCAI 2023✅✅
    MAERec(Union14M)ICCV 2023✅✅
    LISTERICCV 2023✅✅
    CDistNetIJCV 2024✅✅YesianRohn
    BUSNetAAAI 2024✅✅
    DCTCAAAI 2024TODO
    CAMPR 2024✅✅
    OTECVPR 2024✅✅
    CFFIJCAI 2024TODO
    DPTRACM MM 2024fd-zs
    VIPTRACM CIKM 2024TODO
    IGTRTPAMI 2025✅✅
    SMTRAAAI 2025✅✅
    CPPDTPAMI 2025✅✅
    FocalSVTR-CTCAAAI 2025✅✅
    SVTRv2ICCV 2025✅✅
    ResNet+Trans-CTC✅✅
    ViT-CTC✅✅
    MDiff4STRAAAI 2025 Oral✅✅
    ScriptMoEPreprint✅✅YesianRohn

    Scene Text Detection (STD)

    TODO

    Text Spotting

    TODO


    Citation

    If you find our method useful for your reserach, please cite:

    @inproceedings{Du2025SVTRv2,
      title={SVTRv2: CTC Beats Encoder-Decoder Models in Scene Text Recognition},
      author={Yongkun Du and Zhineng Chen and Hongtao Xie and Caiyan Jia and Yu-Gang Jiang},
      booktitle={ICCV},
      year={2025},
      pages={20147-20156}
    }
    
    @article{du2025unirec,
      title={UniRec-0.1B: Unified Text and Formula Recognition with 0.1B Parameters},
      author={Yongkun Du and Zhineng Chen and Yazhen Xie and Weikang Bai and Hao Feng and Wei Shi and Yuchen Su and Can Huang and Yu-Gang Jiang},
      journal={arXiv preprint arXiv:2512.21095},
      year={2025}
    }
    
    @article{Ye2026ScriptMoE,
      title={All-in-One Multilingual Scene Text Recognition with Script-aware Mixture-of-Experts},
      author={Xingsong Ye and Yongkun Du and Jiaxin Zhang and Zhixian Li and Chong Sun and Chen Li and Jing Lyu and Lianwen Jin and Zhineng Chen},
      journal={arXiv preprint},
      year={2026}
    }
    

    Acknowledgement

    This codebase is built based on the PaddleOCR, PytorchOCR, and MMOCR. Thanks for their awesome work!