Skip to content

Commit 239838a

Browse files
committed
Merge pull request #1 from elwerene/master
Support for scanning of multiple barcodes in one image: New option "mult...
2 parents d0a8db6 + fe66d99 commit 239838a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ module.exports = function (options) {
2020
if(defaults.try_harder) {
2121
commandLineOptions += "--try_harder ";
2222
}
23+
if(defaults.multi) {
24+
commandLineOptions += "--multi ";
25+
}
2326
return {
2427
decode: function(filePath, cb) {
2528
exec('java -cp '+path.join(defaults.ZXingLocation, 'javase', 'javase'+defaults.ZXingVersion+'.jar')+cpSeparator+path.join(defaults.ZXingLocation, 'core', 'core'+defaults.ZXingVersion+'.jar')+' com.google.zxing.client.j2se.CommandLineRunner'+commandLineOptions+''+filePath,
@@ -44,4 +47,4 @@ module.exports = function (options) {
4447
);
4548
}
4649
};
47-
}
50+
}

0 commit comments

Comments
 (0)