Skip to main content

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

Release files for scanbook 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scanbook 0.1.1
File Size Uploaded
scanbook-0.1.1.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scanbook 0.1.1
File Interpreter ABI Platform
scanbook-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / scanbook-0.1.1.tar.gz

Download URL scanbook-0.1.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b0a354d0b73c43145cab807e2bb5ebf7167ae298d734f39f2cb073ca7a170291
BLAKE2b-256 checksum
How to use checksums
03fcb58db8dfd21de2efff893360078796ef015f0cde97be55be97dd492800e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Release files / scanbook-0.1.1-py3-none-any.whl

Download URL scanbook-0.1.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a87b18f37f37d29c15c7ee06a173fa0393a96844792134f865724e9c058ddacb
BLAKE2b-256 checksum
How to use checksums
eae880dbf9d98d0266ac27312ba03aa8649310df279b1eefd6950e995affe320
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page