From 59766b664124121346a39a98430767b319c4dc18 Mon Sep 17 00:00:00 2001 From: Krystian Duma Date: Thu, 1 Dec 2022 23:49:55 +0100 Subject: [PATCH] Limit scanned barcodes --- bin/barcode-scanner/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/barcode-scanner/run.sh b/bin/barcode-scanner/run.sh index a3df3c3..1e293ee 100755 --- a/bin/barcode-scanner/run.sh +++ b/bin/barcode-scanner/run.sh @@ -2,4 +2,4 @@ /usr/bin/pdftoppm -png -r $1 -singlefile -cropbox '/data/input.pdf' '/data/image' || exit 1 -/usr/bin/zbarimg -S*.enable '/data/image.png' > '/data/output.txt' || exit 5 +/usr/bin/zbarimg --set '*.disable' --set '*.no-position' --set '*.x-density=2' --set '*.y-density=2' --set 'code128.enable' --set 'qrcode.enable' '/data/image.png' > '/data/output.txt' || exit 5