Skip to main content

Tool that processes page images for easier reading

Project description

Scanbook

A Python command-line tool for turning page scans into a nice black-and-white PDF.

Installation

  1. Install Imagemagick
  2. pip install scanbook
  3. Make sure the Python binary path is in your $PATH.

Pipless installation

  1. python setup.py install instead of pip install scanbook

Dependencies

  • click
  • opencv-python
  • scikit-image
  • Imagemagick (convert)

Usage

scanbook BOOKNAME FILENAMES...

Example: scanbook war-and-peace *.jpg

Options:

  • --threshold NUM -- set the threshold value, if the images are turning out too light or too dark; must be an odd number (default: 19)
  • --no-cleanup -- leave the __BOOKNAME folder (handy if you want to do anything with the processed image files)
  • --verbose

Example: scanbook --verbose --threshold 27 --no-cleanup war-and-peace *.jpg

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

scanbook-0.1.1.tar.gz (2.9 kB view hashes)

Uploaded source

Built Distribution

scanbook-0.1.1-py3-none-any.whl (4.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page