instascan
instascan copied to clipboard
How can I detect multiple QR codes at the same time?
Hello I need to make this to be able to detect multiple QR codes at the same time. Is this a possibility?
ZXing (the underlying QR code recognition library) does have the ability to recognize multiple QR codes at once, but I haven't spent a lot of time trying to make it work, so I've just dropped it.
Let me work with it a bit to see if I can get it to work reliably.
If you're interested, the ZXing._decode_qr
call here should be ZXing._decode_qr_multi
as shown in the ZXing Emscripten build.
Any updates? I mean sorry if I sounds like begging to much. I am not in hurry, I am okay with my current result. Although having multiple QR scan would be good.
Not really keen on JavaScript by myself. I would like to try this....
If you're interested, the
ZXing._decode_qr
call here should beZXing._decode_qr_multi
as shown in the ZXing Emscripten build.
But it seems this library is "compiled"? I use the minified version but the src
folder contains three files????
I did myself a favor installing Babel (?!) tried to compile using babel ./index.js --out-file ./result.js
but the result.js
is an exact same to the index.js
.
I apologize for the delay, there are a number of issues that I'm working on for this project right now.
The resulting JavaScript library (instascan.js
and the minified version, instascan.min.js
) is compiled from the source files under src
. The source needs to be compiled because it uses JavaScript features that are not yet widely available to current browsers.
This project uses gulp as its build system, so you can do the following to compile the library yourself:
git clone https://github.com/schmich/instascan && cd instascan
npm install
gulp build
The resulting library will be built to dist/instascan.js
. If you want the minified version (dist/instascan.min.js
), you can run gulp release
.
I still intend to investigate and fix this issue, it's just lower priority than other issues currently.
@notalentgeek Have you managed to make it work with multiple qr codes? Any updates? Thanks.
@notalentgeek || @schmich just curious if there was any progress on this issue. We currently use this library and would like to be able to scan multiple QR codes at one time if possible.