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
- Install Imagemagick
pip install scanbook
- Make sure the Python binary path is in your $PATH.
Pipless installation
python setup.py install
instead ofpip 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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file scanbook-0.1.1.tar.gz
.
File metadata
- Download URL: scanbook-0.1.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b0a354d0b73c43145cab807e2bb5ebf7167ae298d734f39f2cb073ca7a170291
|
|
MD5 |
7aef899e7d7fdf632e80e20e8069aaa7
|
|
BLAKE2b-256 |
03fcb58db8dfd21de2efff893360078796ef015f0cde97be55be97dd492800e3
|
File details
Details for the file scanbook-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: scanbook-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a87b18f37f37d29c15c7ee06a173fa0393a96844792134f865724e9c058ddacb
|
|
MD5 |
962da23d3e92a31dcf9bf8a11ad7c3d4
|
|
BLAKE2b-256 |
eae880dbf9d98d0266ac27312ba03aa8649310df279b1eefd6950e995affe320
|