summaryrefslogtreecommitdiff
path: root/Scripts/Scanner.py
diff options
context:
space:
mode:
authorJulian Teu <julianteule@gmail.com>2018-04-10 18:07:28 +0200
committerJulian Teu <julianteule@gmail.com>2018-04-10 18:07:28 +0200
commit3e00fc23117a6fbb91d5ca09602f8006c3f2365a (patch)
tree4e3f2288424a5c09e9815eff04719f620cd7b321 /Scripts/Scanner.py
parenta3443fca6351cbe9ecbbe29a32e358f7534a92a6 (diff)
Cleanup
Diffstat (limited to 'Scripts/Scanner.py')
-rwxr-xr-xScripts/Scanner.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/Scripts/Scanner.py b/Scripts/Scanner.py
deleted file mode 100755
index 04538c4..0000000
--- a/Scripts/Scanner.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env python
-
-import getch
-import os
-
-page = 0
-
-name = input("Enter name of pdf: ")
-
-while(1):
- print("Press q for exit, Space for scanning, and d for done")
- x = getch.getch()
- if(x == 'q'):
- exit()
- elif(x == ' '):
- print("Starting scan of page " + str(page+1))
- os.system("scanimage --device genesys:libusb:001:004 --format=tiff > scan" + str(page) + ".tiff")
- page += 1
- print("Scan done")
- elif(x == 'd'):
- print("Collecting tiff pages")
- os.system("tiffcp scan*.tiff magazine.tiff");
- print("Making pdf file")
- os.system("convert magazine.tiff '" + name + ".pdf'")
- print("Removing tiffs")
- os.system("rm *.tiff")
- print("Done resetting vars")
- page = 0
- name = input("Enter name of pdf: ")
-
-