OpenMMLab Text Detection, Recognition and Understanding Toolbox
 
 
 
Go to file
garvan2021 c79a62487d
[Feature] Add Tesserocr Inference (#814)
* append tesserocr to requirements list, but may encounter build error at windows platform

* simply save

* 2022.3.4

* opencv-python==4.5.5 can cause cv2.error when print_result=True

* append MMOCR.tesseract_det_inference()

* argument check append

* fix lint error

* update commentary

* lint fix

* requirement remove opencv

* handle tessdata problem

* support tesseract recognition

* fix some bugs

* fix imshow bug

* support batch mode(fake)

* modify annotation

* refactor BaseRecognizer for show_result

* append pytest

* Mock tesseract

* Fix test

* remove \n from Tesseract

* normalize text score

* update docs
2022-03-28 22:50:53 +08:00
.circleci [Enhancement] Add markdown linter in pre-commit hook (#643) 2021-12-08 15:36:47 +08:00
.github [Enhancement] Add windows CI (#790) 2022-03-02 10:34:15 +08:00
configs [Fix] Add num_classes to configs of ABINet (#805) 2022-03-16 17:17:02 +08:00
demo [Feature] Add Tesserocr Inference (#814) 2022-03-28 22:50:53 +08:00
docker [Fix]: Use mmdet 2.20.0 in Dockerfile (#763) 2022-01-27 19:54:45 +08:00
docs [Enhancement] Add warning info for LineStrParser (#850) 2022-03-22 17:44:05 +08:00
mmocr [Feature] Add Tesserocr Inference (#814) 2022-03-28 22:50:53 +08:00
requirements [Fix] Set up the minimumversion requirement of albumentations (#769) 2022-02-15 16:51:58 +08:00
resources [Docs] Add model summary (#693) 2021-12-31 11:26:38 +08:00
tests [Feature] Add Tesserocr Inference (#814) 2022-03-28 22:50:53 +08:00
tools [Fix] description in tools/data/utils/txt2lmdb.py (#870) 2022-03-23 17:30:33 +08:00
.codespellrc [Feature] Add codespell pre-commit hook and fix typos (#520) 2021-10-13 22:56:11 +08:00
.coveragerc
.gitignore [Docs] Refactor docs structure (#662) 2021-12-10 17:19:27 +08:00
.owners.yml [Enhancement] Deploy openmmlab-bot (#876) 2022-03-24 15:29:40 +08:00
.pre-commit-config.yaml [Enhancement] Add open-mmlab precommit hook (#787) 2022-02-22 12:52:04 +08:00
.pylintrc
.readthedocs.yml
CITATION.cff [Enhancement] add CITATION.cff (#476) 2021-09-01 20:01:30 +08:00
LICENSE
MANIFEST.in
README.md [Docs] Update README.MD (#806) 2022-03-01 15:55:02 +08:00
README_zh-CN.md [Docs] Update README_zh-CN document URL (#823) 2022-03-11 10:10:06 +08:00
model-index.yml [Model] Full ABINet Framework (#651) 2021-12-15 11:21:54 +08:00
requirements.txt
setup.cfg [Enhancement] Upgrade isort (#771) 2022-02-09 23:22:14 +08:00
setup.py [Enhancement] Upgrade isort (#771) 2022-02-09 23:22:14 +08:00

README.md

 
OpenMMLab website HOT      OpenMMLab platform TRY IT OUT
 

Introduction

English | 简体中文

build docs codecov license PyPI Average time to resolve an issue Percentage of issues still open

MMOCR is an open-source toolbox based on PyTorch and mmdetection for text detection, text recognition, and the corresponding downstream tasks including key information extraction. It is part of the OpenMMLab project.

The main branch works with PyTorch 1.6+.

Documentation: https://mmocr.readthedocs.io/en/latest/.

Major Features

  • Comprehensive Pipeline

    The toolbox supports not only text detection and text recognition, but also their downstream tasks such as key information extraction.

  • Multiple Models

    The toolbox supports a wide variety of state-of-the-art models for text detection, text recognition and key information extraction.

  • Modular Design

    The modular design of MMOCR enables users to define their own optimizers, data preprocessors, and model components such as backbones, necks and heads as well as losses. Please refer to Getting Started for how to construct a customized model.

  • Numerous Utilities

    The toolbox provides a comprehensive set of utilities which can help users assess the performance of models. It includes visualizers which allow visualization of images, ground truths as well as predicted bounding boxes, and a validation tool for evaluating checkpoints during training. It also includes data converters to demonstrate how to convert your own data to the annotation files which the toolbox supports.

Model Zoo

Supported algorithms:

Text Detection
Text Recognition
Key Information Extraction
Named Entity Recognition

Please refer to model_zoo for more details.

License

This project is released under the Apache 2.0 license.

Citation

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

@article{mmocr2021,
    title={MMOCR:  A Comprehensive Toolbox for Text Detection, Recognition and Understanding},
    author={Kuang, Zhanghui and Sun, Hongbin and Li, Zhizhong and Yue, Xiaoyu and Lin, Tsui Hin and Chen, Jianyong and Wei, Huaqiang and Zhu, Yiqin and Gao, Tong and Zhang, Wenwei and Chen, Kai and Zhang, Wayne and Lin, Dahua},
    journal= {arXiv preprint arXiv:2108.06543},
    year={2021}
}

Changelog

v0.4.1 was released in 2022-01-27.

Installation

Please refer to our Install Guide.

Get Started

Please see Getting Started for the basic usage of MMOCR.

Contributing

We appreciate all contributions to improve MMOCR. Please refer to CONTRIBUTING.md for the contributing guidelines.

Acknowledgement

MMOCR is an open-source project that is contributed by researchers and engineers from various colleges and companies. We appreciate all the contributors who implement their methods or add new features, as well as users who give valuable feedbacks. We hope the toolbox and benchmark could serve the growing research community by providing a flexible toolkit to reimplement existing methods and develop their own new OCR methods.

Projects in OpenMMLab

  • MIM: MIM installs OpenMMLab packages.
  • MMClassification: OpenMMLab image classification toolbox and benchmark.
  • MMDetection: OpenMMLab detection toolbox and benchmark.
  • MMDetection3D: OpenMMLab's next-generation platform for general 3D object detection.
  • MMRotate: OpenMMLab rotated object detection toolbox and benchmark.
  • MMSegmentation: OpenMMLab semantic segmentation toolbox and benchmark.
  • MMOCR: OpenMMLab text detection, recognition, and understanding toolbox.
  • MMPose: OpenMMLab pose estimation toolbox and benchmark.
  • MMHuman3D: OpenMMLab 3D human parametric model toolbox and benchmark.
  • MMSelfSup: OpenMMLab self-supervised learning toolbox and benchmark.
  • MMRazor: OpenMMLab model compression toolbox and benchmark.
  • MMFewShot: OpenMMLab fewshot learning toolbox and benchmark.
  • MMAction2: OpenMMLab's next-generation action understanding toolbox and benchmark.
  • MMTracking: OpenMMLab video perception toolbox and benchmark.
  • MMFlow: OpenMMLab optical flow toolbox and benchmark.
  • MMEditing: OpenMMLab image and video editing toolbox.
  • MMGeneration: OpenMMLab image and video generative models toolbox.
  • MMDeploy: OpenMMLab model deployment framework.