Skip to main content
QUICK REVIEW

[Paper Review] MMOCR: A Comprehensive Toolbox for Text Detection, Recognition and Understanding

Zhanghui Kuang, Hongbin Sun|arXiv (Cornell University)|Aug 14, 2021
Handwritten Text Recognition TechniquesComputer Science43 references15 citations
TL;DR

MMOCR is an open-source, comprehensive deep learning toolbox that unifies state-of-the-art methods for text detection, recognition, and understanding—including key information extraction and named entity recognition—within a single framework. It implements 14 SOTA algorithms, provides extensive pre-trained models, benchmarks, and deployment tools, significantly advancing reproducibility and industrial application in OCR research.

ABSTRACT

We present MMOCR-an open-source toolbox which provides a comprehensive pipeline for text detection and recognition, as well as their downstream tasks such as named entity recognition and key information extraction. MMOCR implements 14 state-of-the-art algorithms, which is significantly more than all the existing open-source OCR projects we are aware of to date. To facilitate future research and industrial applications of text recognition-related problems, we also provide a large number of trained models and detailed benchmarks to give insights into the performance of text detection, recognition and understanding. MMOCR is publicly released at https://github.com/open-mmlab/mmocr.

Motivation & Objective

  • To address the fragmented landscape of OCR toolboxes by unifying diverse text detection, recognition, and understanding methods in a single, extensible framework.
  • To enable fair comparison and modular experimentation of key components (e.g., backbones, necks) across different models.
  • To support practical deployment and industrial use through ONNX conversion, lightweight models, and multi-platform inference tools.
  • To provide comprehensive benchmarks and pre-trained models on standard and industrial datasets, including multilingual support.
  • To streamline research and development in document AI by offering a one-stop solution for end-to-end OCR pipelines.

Proposed method

  • MMOCR implements 14 state-of-the-art algorithms, including 7 text detection (e.g., DB, PANet, FCENet), 5 text recognition (e.g., CRNN, SAR, RobustScanner), 1 key information extraction (SDMG-R), and 1 named entity recognition (Bert-Softmax) method.
  • The toolbox uses a modular, unified framework based on MMDetection and MMRazor, enabling plug-and-play integration of different components such as backbones and necks.
  • It supports training and inference with full pipeline support, including data loading, augmentation, and evaluation, with detailed documentation and tutorials.
  • MMOCR provides GPU-friendly lightweight models such as ddrnet23-slim for efficient inference in resource-constrained environments.
  • The framework enables model conversion to ONNX for deployment on diverse hardware platforms, enhancing industrial usability.
  • It includes utility tools for visualization, demo inference, and benchmarking across multiple datasets, including ICDAR, SynthText, and IIT-AR-2015.

Experimental results

Research questions

  • RQ1How can a unified, modular framework improve the reproducibility and comparability of text detection and recognition models?
  • RQ2What are the performance and efficiency trade-offs of different backbone and neck architectures in text detection models?
  • RQ3To what extent can a single toolbox support end-to-end OCR pipelines from detection to structured information extraction?
  • RQ4How does the inclusion of multilingual and industrial-scale pre-trained models enhance real-world OCR deployment?
  • RQ5What is the impact of lightweight architectures like ddrnet23-slim on inference speed and accuracy in text detection?

Key findings

  • MMOCR implements 14 state-of-the-art algorithms, surpassing existing open-source OCR toolboxes in both breadth and depth of supported methods.
  • The ddrnet23-slim backbone achieves 45% and 21% of the FLOPs of ResNet18 and ResNet50 respectively, with only a slight drop in H-mean performance on text detection tasks.
  • Among neck architectures, FPEM_FFM (from PAN) achieves the best H-mean with the lowest FLOPs in PAN-based models, while FPNF (from PSENet) achieves the highest H-mean but with significantly higher FLOPs.
  • The FLOPs of the FPNF neck are substantially higher than those of PFNC (from DB) and FPEM_FFM, indicating a trade-off between accuracy and efficiency.
  • MMOCR provides extensive pre-trained models on public and industrial datasets, including Chinese text recognition models, enhancing multilingual OCR support.
  • The toolbox enables seamless ONNX export, facilitating deployment across diverse hardware platforms, which is critical for industrial applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.