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

Uploaded Source

Built Distribution

sbb_binarization-0.0.4-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sbb_binarization-0.0.4.tar.gz
  • Upload date:
  • Size: 5.5 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.4.tar.gz
Algorithm Hash digest
SHA256 db48df3ec707a48d8ba3ac84331bccdf08c9e541d06ca157017c92f929ec2af0
MD5 54aa8cf031c07bb09bd61f96ea7f900d
BLAKE2b-256 68cbf178cab63417037e52d606ac2a47f89632c171244ddf14d8897fa949b037

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbb_binarization-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 11.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 db416621752886a8889c8cc28704b0ee6d0039fb933525387f70a2405b4df5a3
MD5 3056cdc0ac2af14b2e2c0b60b1236e47
BLAKE2b-256 897eae00d33697fa4ef0c94339d7f3e21a8c330660a71780a2d7a323d880522b

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