ngx-scanner icon indicating copy to clipboard operation
ngx-scanner copied to clipboard

Found one Qr code not working but working well with the default system camera

Open PierreLucB opened this issue 3 years ago • 4 comments

I have a QR code not working. I can detect it with the native camera of my smartphone, but the library can't find it. I tried with the tryHarder = true, but it's not working.

All other QR codes (printed or numeric) I tested are detected very fastly !

The Qr code not working : image

PierreLucB avatar Dec 08 '21 16:12 PierreLucB

I would think because the dots are not square but circles some readers may have issues on this one. This may just be related to the QR code itself. Whoever published/printed this barcode should look at QR code standards

lazmeister avatar Feb 02 '22 16:02 lazmeister

On the same lines, the same is happening to me with the attached QRcode, which is not made with dots. While is readable by other Qr readers(even from this library demo screenshot🤣) with no effort, could not be readed by this library. Can someone shed some light on?

Screenshot_20220127-234246

jmelich avatar Feb 21 '22 19:02 jmelich

@PierreLucB @jmelich This library currently does not support scanning inverted QR codes AFAIK. See this issue https://github.com/zxing-js/ngx-scanner/issues/261

elmi82 avatar Jun 23 '22 10:06 elmi82

Hey @elmi82 sorry for the delay and thanks for your reply.

It shed some light given I thought the detection mechanism was by color contrast between background and qr content. I'll try to invert the colors and check if it works.

Thanks once again.

jmelich avatar Aug 16 '22 06:08 jmelich