Scan-to-cloud for local scanners.
This is based on the Fujitsu ScanSnap S1300i, which despite it's marketing info saying "Scan to Cloud", doesn't. The "ScanSnap Cloud" software is meant to be able to do scan-to-Dropbox, but doesn't. Also, even if it did, it needs to be rigged up to a Windows or Mac machine, and I don't have a spare one of those to have.
Munger enables the use of a Raspberry Pi for scan-to-cloud, along with a convertor component for running elsewhere if you've got an older slower Pi that can't really do the conversion stuff.
Acquire a Pi (I'm using an original Model B, so probably anything except the Pi Zero will work for this), a screen (I've got a cheap knockoff of the AdaFruit 2.8" 320x240 TFT), and a USB scanner (Fujitsu ScanSnap S1300i is what I've got, but anything that's compatible with SANE and scanbd should work)
Do the raspberry-chef install, using the following settings:
/etc/scanner/drive.yamlon the Pi and edit it to your local settings. In the example config, I've got another checkout of munger on the server in
src/mungerand we're dumping the scans under that.
mount_folderis the actual folder to mount and
scans_folderis a subfolder of that to store things in. When the raspberry-chef updater runs again, you should now have a mounted folder.
At this point you should be able to open up your scanner and see "Scanner on" display, and then push the physical "scan" button and get the scanner to scan images to the folder you configured in
You now need another machine (or in theory the Pi itself could do this, but it's really slow on the Pi 1 I'm using, so mostly untested recently). Checkout a copy of this repo there.
Build the server docker image
docker build -t munger server
Run it, replacing
<scans folder>with a path to the
scans folderfrom step 3, and
<output folder>to wherever the end files go (I suggest a local Dropbox folder or similar)
docker run --rm -v <scans folder>:/scans -v <output folder>:/output munger /output /scans
At this point, when you do a scan it should go through the following steps: