mmocr/README.md

117 lines
5.6 KiB
Markdown
Raw Normal View History

2021-04-02 15:55:42 +08:00
<div align="center">
2021-04-05 20:30:33 +08:00
<img src="resources/mmocr-logo.png" width="500px"/>
2021-04-02 15:55:42 +08:00
</div>
## Introduction
[![build](https://github.com/open-mmlab/mmocr/workflows/build/badge.svg)](https://github.com/open-mmlab/mmocr/actions)
[![docs](https://readthedocs.org/projects/mmocr/badge/?version=latest)](https://mmocr.readthedocs.io/en/latest/?badge=latest)
2021-04-10 20:44:20 +08:00
[![codecov](https://codecov.io/gh/open-mmlab/mmocr/branch/main/graph/badge.svg)](https://codecov.io/gh/open-mmlab/mmocr)
[![license](https://img.shields.io/github/license/open-mmlab/mmocr.svg)](https://github.com/open-mmlab/mmocr/blob/main/LICENSE)
2021-04-09 10:59:14 +08:00
[![PyPI](https://badge.fury.io/py/mmocr.svg)](https://pypi.org/project/mmocr/)
[![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/open-mmlab/mmocr.svg)](https://github.com/open-mmlab/mmocr/issues)
[![Percentage of issues still open](https://isitmaintained.com/badge/open/open-mmlab/mmocr.svg)](https://github.com/open-mmlab/mmocr/issues)
2021-04-02 15:55:42 +08:00
2021-04-08 12:07:28 +08:00
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](https://openmmlab.com/) project.
2021-04-02 15:55:42 +08:00
2021-04-10 20:44:20 +08:00
The main branch works with **PyTorch 1.5+**.
2021-04-02 15:55:42 +08:00
Documentation: https://mmocr.readthedocs.io/en/latest/.
<div align="left">
<img src="resources/illustration.jpg"/>
</div>
### Major Features
- **Comprehensive Pipeline**
2021-04-08 10:23:03 +08:00
The toolbox supports not only text detection and text recognition, but also their downstream tasks such as key information extraction.
2021-04-02 15:55:42 +08:00
- **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.md](docs/getting_started.md) for how to construct a customized model.
2021-04-02 15:55:42 +08:00
- **Numerous Utilities**
2021-04-08 10:23:03 +08:00
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.
2021-04-02 15:55:42 +08:00
## [Model Zoo](https://mmocr.readthedocs.io/en/latest/modelzoo.html)
Supported algorithms:
<details open>
<summary>(click to collapse)</summary>
- [x] [DBNet](configs/textdet/dbnet/README.md) (AAAI'2020)
- [x] [Mask R-CNN](configs/textdet/maskrcnn/README.md) (ICCV'2017)
- [x] [PANet](configs/textdet/panet/README.md) (ICCV'2019)
- [x] [PSENet](configs/textdet/psenet/README.md) (CVPR'2019)
- [x] [TextSnake](configs/textdet/textsnake/README.md) (ECCV'2018)
- [x] [CRNN](configs/textrecog/crnn/crnn_academic_dataset.py) (TPAMI'2016)
- [x] [NRTR](configs/textrecog/nrtr/README.md) (ICDAR'2019)
- [x] [RobustScanner](configs/textrecog/robust_scanner/README.md) (ECCV'2020)
- [x] [SAR](configs/textrecog/sar/README.md) (AAAI'2019)
- [x] [SegOCR](configs/bottom_up/higherhrnet/README.md) (Manuscript'2021)
- [x] [SDMG-R](configs/kie/sdmgr/README.md) (ArXiv'2021)
</details>
2021-04-02 15:55:42 +08:00
## License
This project is released under the [Apache 2.0 license](LICENSE).
## Citation
If you find this project useful in your research, please consider cite:
```bibtex
@misc{mmocr2021,
title={MMOCR: A Comprehensive Toolbox for Text Detection, Recognition and Understanding},
author={MMOCR Contributors},
howpublished = {\url{https://github.com/open-mmlab/mmocr}},
year={2021}
}
```
2021-04-02 15:55:42 +08:00
## Changelog
2021-04-07 10:19:36 +08:00
v0.1.0 was released on 07/04/2021.
2021-04-02 15:55:42 +08:00
## Benchmark and Model Zoo
Please refer to [modelzoo.md](https://mmocr.readthedocs.io/en/latest/index.html) for more details.
2021-04-02 15:55:42 +08:00
## Installation
Please refer to [install.md](docs/install.md) for installation.
2021-04-02 15:55:42 +08:00
## Get Started
Please see [getting_started.md](docs/getting_started.md) for the basic usage of MMOCR.
2021-04-02 15:55:42 +08:00
## Contributing
We appreciate all contributions to improve MMOCR. Please refer to [CONTRIBUTING.md](.github/CONTRIBUTING.md) for the contributing guidelines.
2021-04-02 15:55:42 +08:00
## 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
- [MMCV](https://github.com/open-mmlab/mmcv): OpenMMLab foundational library for computer vision.
- [MMClassification](https://github.com/open-mmlab/mmclassification): OpenMMLab image classification toolbox and benchmark.
- [MMDetection](https://github.com/open-mmlab/mmdetection): OpenMMLab detection toolbox and benchmark.
- [MMDetection3D](https://github.com/open-mmlab/mmdetection3d): OpenMMLab's next-generation platform for general 3D object detection.
- [MMSegmentation](https://github.com/open-mmlab/mmsegmentation): OpenMMLab semantic segmentation toolbox and benchmark.
- [MMAction2](https://github.com/open-mmlab/mmaction2): OpenMMLab's next-generation action understanding toolbox and benchmark.
- [MMPose](https://github.com/open-mmlab/mmpose): OpenMMLab's pose estimation toolbox and benchmark.
- [MMTracking](https://github.com/open-mmlab/mmtracking): OpenMMLab video perception toolbox and benchmark.
- [MMEditing](https://github.com/open-mmlab/mmediting): OpenMMLab image editing toolbox and benchmark.