From f329f602bf8453224f55b6f60d717287b4ef25dc Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Sun, 3 Nov 2019 16:11:34 +0100 Subject: [PATCH] Reset now full speed --- sorteerhoed/central_management.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sorteerhoed/central_management.py b/sorteerhoed/central_management.py index 14e30bc..ff61b5f 100644 --- a/sorteerhoed/central_management.py +++ b/sorteerhoed/central_management.py @@ -338,7 +338,11 @@ class CentralManagement(): self.eventQueue.put(Signal('scan.start')) # Scan to reset cmd = [ - 'sudo', 'scanimage', '-d', 'epkowa' + 'sudo', 'scanimage', '-d', 'epkowa','--resolution=100', + '-l','25' #y axis, margin from top of the scanner, hence increasing this, moves the scanned image upwards + ,'-t','22', # x axis, margin from left side scanner (seen from the outside) + '-x',str(181), + '-y',str(245) ] proc = subprocess.Popen(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE) # opens connection to scanner, but only starts scanning when output becomes ready: