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 \
  -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>`

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

Uploaded Source

Built Distribution

sbb_binarization-0.0.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sbb_binarization-0.0.1.tar.gz
  • Upload date:
  • Size: 5.2 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.1.tar.gz
Algorithm Hash digest
SHA256 f882d632ae5cde9fa69a459a2bdaf94675fdf71e5fdeb360b61f87cef569bdc9
MD5 83e26321b824d75d85da1018545715c6
BLAKE2b-256 ad73471c8203f6e76df5977b1d766ff860b4a9bdd265ded407b397a4f6f3fc2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbb_binarization-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ca6b78c3cf291b8ab09eb1003475fb9b6ed52c3f3b6703bc7189dd91de87f2d
MD5 2771a8536056cc4d187004eac3f1b2c6
BLAKE2b-256 7f1b544d9591e05e2989c36752eb564b9433f2777e002e48535f8e7248ef89cf

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