Align Hole Punches
Posted: 2010-12-06T13:40:34-07:00
I'm doing some hand drawn 2D paper animation and would like to line up my scanned images using the hole punches. There are several commercial animation packages that can do this including Toon Boom, TV Paint, DigiCel Flipbook, Animo and probably a few others.
In addition, there is a free program specifically for this purpose called ScanFix - http://people.rit.edu/dpalyka/ScanFix.html - but it can only use TIFF files with Macintosh byte order--my scanner writes to a memory card in JPEG format. I tried converting the scans with imagemagick but the program seems to work only on files captured on a Macintosh via TWAIN in Photoshop. Although it is written in Java, it doesn't work at all on Linux.
It seems to me that it would be trivial to write a script that would line up a batch of scans to a reference image of a blank sheet of paper with just the hole punches. However, I'm not very skilled at coding and have no idea where to begin.
I made these scans with the scanner top open so the hole punches would show up better and so the built in automatic cropping wouldn't cut off any of the image.
Reference Image
Sample Scan (re-sized for this post)
Note that I'm using standard 1/4 inch 3-hole punched paper but the script should also be able to handle acme punched paper.
I'm currently solving this problem by temporarily taping a metal pegbar directly to the scanner's glass platen but the pegbar cannot stay attached permanently because the scanner is used for other purposes. Re-positioning the pegbar to the same position is pretty much impossible so if I need to do a fix on paper and re-scan a drawing, the entire scene needs to be re-scanned--Ugh! Going paperless and drawing on a Wacom tablet or Cintiq isn't an option.
Thanks for any help!
In addition, there is a free program specifically for this purpose called ScanFix - http://people.rit.edu/dpalyka/ScanFix.html - but it can only use TIFF files with Macintosh byte order--my scanner writes to a memory card in JPEG format. I tried converting the scans with imagemagick but the program seems to work only on files captured on a Macintosh via TWAIN in Photoshop. Although it is written in Java, it doesn't work at all on Linux.
It seems to me that it would be trivial to write a script that would line up a batch of scans to a reference image of a blank sheet of paper with just the hole punches. However, I'm not very skilled at coding and have no idea where to begin.
I made these scans with the scanner top open so the hole punches would show up better and so the built in automatic cropping wouldn't cut off any of the image.
Reference Image
Sample Scan (re-sized for this post)
Note that I'm using standard 1/4 inch 3-hole punched paper but the script should also be able to handle acme punched paper.
I'm currently solving this problem by temporarily taping a metal pegbar directly to the scanner's glass platen but the pegbar cannot stay attached permanently because the scanner is used for other purposes. Re-positioning the pegbar to the same position is pretty much impossible so if I need to do a fix on paper and re-scan a drawing, the entire scene needs to be re-scanned--Ugh! Going paperless and drawing on a Wacom tablet or Cintiq isn't an option.
Thanks for any help!