Skip to main content

Pixelwise binarization with selectional auto-encoders in Keras

Project description

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.

Project details


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.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

sbb_binarization-0.0.3-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file sbb_binarization-0.0.3.tar.gz.

File metadata

  • Download URL: sbb_binarization-0.0.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for sbb_binarization-0.0.3.tar.gz
Algorithm Hash digest
SHA256 499bbb37dd2087d1e40cb0f47647a06c4c5b5c92c17edd82d9d2b0fc493a8db4
MD5 bf8895353802d524531ad329fd907956
BLAKE2b-256 224c5a220e38fe109fc6a07325615327e7673b1288bb6781da79cad45e4f1f15

See more details on using hashes here.

File details

Details for the file sbb_binarization-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: sbb_binarization-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for sbb_binarization-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d60eb19f309a905b942c5aa2b071b5f6b4fa18830e9ea87ae0fedb03a74d4a74
MD5 056aa3cc6ef6efadb4433d10c6915c3a
BLAKE2b-256 6bb9b121e38ca30cd0c95703e9182dbdbb887c92cbaa1a4af5df3992a84184aa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page