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.6.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for sbb_binarization-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 900c681479921e621543c9b373d67bb9900c0570c5832abbbe64736a780181c8 |
|
MD5 | 2d535c2c2d54580073c7e8c0829b9d59 |
|
BLAKE2b-256 | dff6d320c557eac137763c6034d3b7c460e40a54afed10efa073de4aac708c75 |