Posts

Showing posts from October, 2009

Semi-automatic photo scanning

For anyone who has a lot of photos to scan, the idea of scanning multiple photos and looking through each file to cut and paste the photos into individual photos can be real turn off if not much time is available. I know I certainly don't want to have to crop each photo out. Shouldn't there be some way for the computer to automatically pick out each individual photo? Luckily, there is. Below I present a script, that coupled with some intelligent scanning methods, automates the process of splitting the scan file into individual files of single photos. The ImageMagick package is a set of command line tools that can do all kinds of things with images, including extracting regions of photos. If I know the size of page, the size of the photos, their position on the page, and the scan density (dpi), then I can use a script to extract each photo from the aggregate scan. I made and printed a template that contains boxes slightly bigger than the photos at known positions on the pa