Pixelwise binarization with selectional auto-encoders in Keras
Project description
Binarization
Binarization for document images
Examples
Introduction
This tool performs document image binarization (i.e. transform colour/grayscale to black-and-white pixels) for OCR using multiple trained models.
The method used is based on Calvo-Zaragoza/Gallego, 2018. A selectional auto-encoder approach for document image binarization.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sbb_binarization-0.0.5.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for sbb_binarization-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71c4d6fb17a120345833172fffcf7874809547760878b2e96d6dfb667b500479 |
|
MD5 | cc590b73ab41f4f752946bcce69080e7 |
|
BLAKE2b-256 | defcf95b18737adb313e3a5c677785d8279811c86c76862662914f86bfa3f0bc |