8000 GitHub - bencrowder/scanbook: Python script to process page image files for easier reading
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bencrowder/scanbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python script to process page image files for easier reading

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0