Scanning: Difference between revisions

From Bibliotheca Anonoma
(Created page with "== DIY Book Scanner == === Dual Cameras: Software Trigger === === Dual cameras: Hardware Trigger === When you use a hardware trigger, all the even pages will be on one came...")
 
No edit summary
Line 1: Line 1:
{{Stub}}
== DIY Book Scanner ==
== DIY Book Scanner ==



Revision as of 17:47, 12 January 2017

Leleahcimjconstruction.gif

Stub

This page is a stub. You can help by expanding it.

DIY Book Scanner

Dual Cameras: Software Trigger

Dual cameras: Hardware Trigger

When you use a hardware trigger, all the even pages will be on one camera and the odd pages will be on the other. In order to merge them together, you must first check that all the pages are accounted for, then rename them to odd or even.

These two bash scripts (Mac/Linux) can be used to do the renaming. After you rename, you just move them to one folder for scantailor to process.

odd.sh
#!/bin/bash 
#
num=1
for file in *.tiff; do
        mv "$file" "$(printf "%04u" $num).tiff"
        let num=num+2
done
even.sh
#!/bin/bash 
#
num=2
for file in *.tiff; do
        mv "$file" "$(printf "%04u" $num).tiff"
        let num=num+2
done

Scantailor

Finally, after the odd and even pages are collated into one folder, you're ready to use Scantailor. (Can be found in Debian and Fedora repos)

http://scantailor.org/

Notice that Scantailor outputs to .tif in the out/ folder. You will need to use tiffcp to combine them, and tiff2pdf to turn it into an actual pdf file.

http://www.moreno.marzolla.name/software/scan-to-pdf/