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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sbb_binarization-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 3c8e1b0fb011543dff8c6f1b3cb24f24a0b8316a29c59b7633e02e1e5e835022
MD5 2475fb4c7acd1a8fb385b8865a2d3958
BLAKE2b-256 351442c603265d4759d9494b4289b89174b35540a63038a5aadbcc555e35a872

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbb_binarization-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 86bf52550c6b795b70a291f5a619b7d5a8729b2839a76983be10e3aca619bc28
MD5 23697ebdbe88a54b831cb9cd5e9aaf0c
BLAKE2b-256 6a55e941508f7b535eb50caa3eee1065bfcd53005aa1cdfca99132186c4d71ce

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