instascan icon indicating copy to clipboard operation
instascan copied to clipboard

How can I detect multiple QR codes at the same time?

Open notalentgeek opened this issue 7 years ago • 6 comments

Hello I need to make this to be able to detect multiple QR codes at the same time. Is this a possibility?

notalentgeek avatar Apr 16 '17 16:04 notalentgeek

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.

schmich avatar Apr 16 '17 19:04 schmich

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 be ZXing._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????

notalentgeek avatar Apr 24 '17 23:04 notalentgeek

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.

notalentgeek avatar Apr 25 '17 00:04 notalentgeek

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.

schmich avatar Apr 25 '17 01:04 schmich

@notalentgeek Have you managed to make it work with multiple qr codes? Any updates? Thanks.

rsp avatar Nov 10 '17 15:11 rsp

@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.

spencerdcarlson avatar Nov 27 '23 21:11 spencerdcarlson