Created
August 11, 2019 19:39
-
-
Save mamu7211/4d3e82a8646ac8bbb2a12cc1d48a643d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
fileName=$1 | |
scanimage -d "genesys:libusb:002:003" --resolution 300 --brightness 50 --mode Color --format tiff > $1.scan.tiff | |
tiff2pdf -o $fileName.scan.pdf $fileName.scan.tiff | |
ocrmypdf -q -l deu $fileName.scan.pdf $fileName.pdf | |
pdftotext $fileName.pdf | |
cat $fileName.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment