All Projects → Layout-Parser → Layout Parser

Layout-Parser / Layout Parser

Licence: apache-2.0
A Python Library for Document Layout Understanding

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Layout Parser

Links Detector
📖 👆🏻 Links Detector makes printed links clickable via your smartphone camera. No need to type a link in, just scan and click on it.
Stars: ✭ 106 (-44.5%)
Mutual labels:  object-detection, ocr
Ailab
Experience, Learn and Code the latest breakthrough innovations with Microsoft AI
Stars: ✭ 6,896 (+3510.47%)
Mutual labels:  object-detection, ocr
Sightseq
Computer vision tools for fairseq, containing PyTorch implementation of text recognition and object detection
Stars: ✭ 116 (-39.27%)
Mutual labels:  object-detection, ocr
Dmsmsgrcg
A photo OCR project aims to output DMS messages contained in sign structure images.
Stars: ✭ 18 (-90.58%)
Mutual labels:  object-detection, ocr
Adelaidet
AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
Stars: ✭ 2,565 (+1242.93%)
Mutual labels:  object-detection, ocr
Torchdistill
PyTorch-based modular, configuration-driven framework for knowledge distillation. 🏆18 methods including SOTA are implemented so far. 🎁 Trained models, training logs and configurations are available for ensuring the reproducibiliy.
Stars: ✭ 177 (-7.33%)
Mutual labels:  object-detection
Ultimatelabeling
A multi-purpose Video Labeling GUI in Python with integrated SOTA detector and tracker
Stars: ✭ 184 (-3.66%)
Mutual labels:  object-detection
Vdetlib
Video detection library
Stars: ✭ 177 (-7.33%)
Mutual labels:  object-detection
Vision3d
Research platform for 3D object detection in PyTorch.
Stars: ✭ 177 (-7.33%)
Mutual labels:  object-detection
Awesome Video Object Detection
This is a list of awesome articles about object detection from video.
Stars: ✭ 190 (-0.52%)
Mutual labels:  object-detection
Hms Ml Demo
HMS ML Demo provides an example of integrating Huawei ML Kit service into applications. This example demonstrates how to integrate services provided by ML Kit, such as face detection, text recognition, image segmentation, asr, and tts.
Stars: ✭ 187 (-2.09%)
Mutual labels:  ocr
Frcnn
Faster R-CNN / R-FCN 💡 C++ version based on Caffe
Stars: ✭ 183 (-4.19%)
Mutual labels:  object-detection
Sin
CVPR 2018: Structure Inference Net for Object Detection
Stars: ✭ 178 (-6.81%)
Mutual labels:  object-detection
License Plate Recognition Nigerian Vehicles
A python program that uses the concept of OCR using machine learning to identify the characters on a Nigerian license plate
Stars: ✭ 183 (-4.19%)
Mutual labels:  ocr
Object Detection Api
Yolov3 Object Detection implemented as APIs, using TensorFlow and Flask
Stars: ✭ 177 (-7.33%)
Mutual labels:  object-detection
Caffe Oneclick
Use caffe to train your own data in just one click
Stars: ✭ 187 (-2.09%)
Mutual labels:  ocr
Vip
Video Platform for Action Recognition and Object Detection in Pytorch
Stars: ✭ 175 (-8.38%)
Mutual labels:  object-detection
Yolov3 Tf2
YoloV3 Implemented in Tensorflow 2.0
Stars: ✭ 2,327 (+1118.32%)
Mutual labels:  object-detection
Android Ocr
Experimental optical character recognition app
Stars: ✭ 2,177 (+1039.79%)
Mutual labels:  ocr
Bmw Yolov4 Inference Api Cpu
This is a repository for an nocode object detection inference API using the Yolov4 and Yolov3 Opencv.
Stars: ✭ 180 (-5.76%)
Mutual labels:  object-detection

Layout Parser Logo

Docs PyPI PyVersion License


Layout Parser is a deep learning based tool for document image layout analysis tasks.

Installation

Use pip or conda to install the library:

pip install layoutparser

# Install Detectron2 for using DL Layout Detection Model
# Please make sure the PyTorch version is compatible with
# the installed Detectron2 version. 
pip install 'git+https://github.com/facebookresearch/detectron2.git#egg=detectron2' 

# Install the ocr components when necessary 
pip install layoutparser[ocr]      

This by default will install the CPU version of the Detectron2, and it should be able to run on most of the computers. But if you have a GPU, you can consider the GPU version of the Detectron2, referring to the official instructions.

Quick Start

We provide a series of examples for to help you start using the layout parser library:

  1. Table OCR and Results Parsing: layoutparser can be used for conveniently OCR documents and convert the output in to structured data.

  2. Deep Layout Parsing Example: With the help of Deep Learning, layoutparser supports the analysis very complex documents and processing of the hierarchical structure in the layouts.

DL Assisted Layout Prediction Example

Example Usage

The images shown in the figure above are: a screenshot of this paper, an image from the PRIMA Layout Analysis Dataset, a screenshot of the WSJ website, and an image from the HJDataset.

With only 4 lines of code in layoutparse, you can unlock the information from complex documents that existing tools could not provide. You can either choose a deep learning model from the ModelZoo, or load the model that you trained on your own. And use the following code to predict the layout as well as visualize it:

>>> import layoutparser as lp
>>> model = lp.Detectron2LayoutModel('lp://PrimaLayout/mask_rcnn_R_50_FPN_3x/config')
>>> layout = model.detect(image) # You need to load the image somewhere else, e.g., image = cv2.imread(...)
>>> lp.draw_box(image, layout,) # With extra configurations

Citing layoutparser

If you find layoutparser helpful to your work, please consider citing our tool using the following BibTeX entry.

@misc{shen2020layoutparser,
  author = {Zejiang Shen and Ruochen Zhang and Melissa Dell},
  title = {LayoutParser},
  howpublished = {\url{https://github.com/Layout-Parser/layout-parser}},
  year = {2020}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].