Setup a Fujitsu ix500 scanner on Linux
Table of Contents
Install package
sudo apt install sane-utils -yApprove the connection
Enable the scanner by opening the scanner’s lid
sudo sane-find-scanner -qfound USB scanner (vendor=0x04c5 [Fujitsu], product=0x132b [ScanSnap iX500]) at libusb:001:007
found USB scanner (vendor=0x0424, product=0x7800) at libusb:001:005Get a list of devices:
scanimage --list-devicesdevice `fujitsu:ScanSnap iX500:10443' is a FUJITSU ScanSnap iX500 scannerGet a list of all device specific options:
scanimage --device 'fujitsu:ScanSnap iX500:10443' --all-optionsScan a test file
Scan with default settings to a temporary testfile
scanimage --format=tiff > /tmp/image.tiff
ls --size --block-size=M /tmp/image.tiff5M /tmp/image.tiffScan productively
Mind making this script executable using chmod +x.
|
|
Code Snippet 1:
Scan documents in bash with scanimage
scanning...
Scanned document(s) to:
9M /scan_2020-03-22-205607_001.tiff
9M /scan_2020-03-22-205607_002.tiffSkipping empty pages
Pay attention at the highlighted swskip in the script above. Lower values e.g. 5% almost
never skip empty pages. You get two files (double sided document). Higher values e.g. 20% skip
empty pages. You get one file. Case-specific testing is recommended.
scanimage --help | grep swskip --after-context=1 --swskip 0..100% (in steps of 0.100006) [0]
Request driver to discard pages with low percentage of dark pixelsAlias the command
Add this command to your .profile
alias scan="ssh raspi '/home/pi/scripts/scan.sh /media/pi/usb500gb/scan'"