Skip to content

Commit fe66d99

Browse files
committed
Support for scanning of multiple barcodes in one image: New option "multi"
1 parent 4c24f04 commit fe66d99

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
@@ -19,6 +19,9 @@ module.exports = function (options) {
1919
if(defaults.try_harder) {
2020
commandLineOptions += "--try_harder ";
2121
}
22+
if(defaults.multi) {
23+
commandLineOptions += "--multi ";
24+
}
2225
return {
2326
decode: function(filePath, cb) {
2427
exec('java -cp '+path.join(defaults.ZXingLocation, 'javase', 'javase'+defaults.ZXingVersion+'.jar')+':'+path.join(defaults.ZXingLocation, 'core', 'core'+defaults.ZXingVersion+'.jar')+' com.google.zxing.client.j2se.CommandLineRunner'+commandLineOptions+''+filePath,
@@ -43,4 +46,4 @@ module.exports = function (options) {
4346
);
4447
}
4548
};
46-
}
49+
}

0 commit comments

Comments
 (0)