Skip to main content

Tool that processes page images for easier reading

Project description


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


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

Pipless installation

  1. python install instead of pip install scanbook


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



Example: scanbook war-and-peace *.jpg


  • --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

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for scanbook, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size scanbook-0.1.0-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size scanbook-0.1.0.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page