No description
Find a file
2020-10-23 19:23:59 +02:00
.circleci minimal CI setup 2020-10-16 13:52:44 +02:00
repo add assets subrepo 2020-10-15 17:31:47 +02:00
sbb_binarize 🐛 read from image_path, not image 2020-10-23 19:23:59 +02:00
.gitignore setup.py/requirements.txt/gitignore 2020-10-15 15:18:57 +02:00
.gitkeep Add new directory, you can find corresponding models in qurator-data 2019-08-23 15:47:32 +02:00
.gitmodules add assets subrepo 2020-10-15 17:31:47 +02:00
LICENSE Add LICENSE 2019-12-10 16:40:44 +01:00
make.sh Add new file 2019-08-23 15:50:09 +02:00
Makefile minimal CI setup 2020-10-16 13:52:44 +02:00
ocrd-tool.json add ocrd-tool.json 2020-10-15 15:19:04 +02:00
README.md 🎨 clean up README, create proper Makefile 2020-10-15 14:44:41 +02:00
requirements.txt require ocrd 2020-10-15 17:07:42 +02:00
setup.py minimal CI setup 2020-10-16 13:52:44 +02:00

Binarization

Binarization for document images

Introduction

This tool performs document image binarization (i.e. transform colour/grayscale to black-and-white pixels) for OCR using multiple trained models.

Installation

Clone the repository, enter it and run

pip install .

Models

Pre-trained models can be downloaded from here:

https://qurator-data.de/sbb_binarization/

Usage

sbb_binarize \
  -m <directory with models> \
  -i <image file> \
  -p <set to true to let the model see the image divided into patches> \
  -s <directory where the results will be saved>`