User:Inductiveload/Scripts/Image splitter

Script to split a directory of images into halves, useful for when books have been scanned as two-page spreads. The images should be in the format "*0001.ext" and so on.

Parameters
The script does not take any command line parameters, but it does have some internal parameters you should set before running the script.


 * DIR: the image directory to process
 * SPLIT_POINT: the proportion of the image horizontally to split at. 0.5 for evenly proportioned pages.
 * OVERLAP: proportion of image to overlap, useful for where the images don't have a perfectly consistent split point.
 * EXCLUDE_PAGES: list of pages that do not need to be split.