khanamiryan / php-qrcode-detector-decoder

This is a PHP library to detect and decode QR-codes. This is first and only QR code reader that works without extensions.
Apache License 2.0
1.36k stars 323 forks source link

read multiple qrcode in one image #52

Open sunthree74 opened 5 years ago

sunthree74 commented 5 years ago

can this library read/scan multiple qrcodes in one image?

i want to use this library to read multiple image .

alvaro-octal commented 5 years ago

Hi,

I'm currently looking for something like that (without luck). A workaround could be to:

  1. Insert image en detect QR.
  2. Get the Result points of the obtained QR.
  3. Suppress that part of the image by replacing those pixels by white for example.
  4. Repeat the process until there are not QR codes detected.

Has anyone found a better solution?

xzessmedia commented 5 years ago

Hi,

I'm currently looking for something like that (without luck). A workaround could be to:

1. Insert image en detect QR.

2. Get the `Result` [points of the obtained QR](https://github.com/khanamiryan/php-qrcode-detector-decoder/issues/48#issuecomment-425385415).

3. Suppress that part of the image by replacing those pixels by white for example.

4. Repeat the process until there are not QR codes detected.

Has anyone found a better solution?

nice idea, but this will not work.. otherwise you would have your solution ;) The problem is: Those codes have to be placed centered to get recognized correctly..

I can not share my approach but i was succesfully this way:

Now you can detect hundreds or maybe thousands of codes depending on your treshhold of your object detection and scan them all!