No description
Find a file
Konstantin Baierer ba51583a7f 📝 changelog
2020-10-27 14:32:25 +01: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 Merge pull request #9 from OCR-D/envvar-continued 2020-10-27 13:30:43 +01:00
.gitignore 📦 v0.0.2 2020-10-23 17:09:54 +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
CHANGELOG.md 📝 changelog 2020-10-27 14:32:25 +01: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 📝 update README to current CLI usage 2020-10-23 19:34:36 +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 \
  --patches \
  -m <directory with models> \
  <input image> \
  <output image>

Note In virtually all cases, the --patches flag will improve results.