Skip to content

Commit 7b7ab80

Browse files
authored
Merge pull request #7 from kduma-OSS/feature/optimize-barcode-scanning
Limit scanned barcodes
2 parents 5eba127 + 59766b6 commit 7b7ab80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/barcode-scanner/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
/usr/bin/pdftoppm -png -r $1 -singlefile -cropbox '/data/input.pdf' '/data/image' || exit 1
44

5-
/usr/bin/zbarimg -S*.enable '/data/image.png' > '/data/output.txt' || exit 5
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

0 commit comments

Comments
 (0)