jsQR icon indicating copy to clipboard operation
jsQR copied to clipboard

I cannot decode this image.

Open ITsolution-git opened this issue 7 years ago • 5 comments

screenshot from 2018-03-25 13 57 21 screenshot from 2018-03-26 16 19 11 Would you please help me? The jsQr gives me error with these images? Especially on colored qr codes.

Thank you in advance.

ITsolution-git avatar Mar 26 '18 20:03 ITsolution-git

Odd, we have some issues with QR codes with lines around the squares tracked in #14 that could impact the second image, but I think there's something else going on, I'm investigating.

cozmo avatar Apr 05 '18 18:04 cozmo

Both these images seem to be related to the contrast ratio - the first one the contrast ratio is low and the second is being thrown off because the traditionally black squares are white - it's basically inverted.

Both of these issues should be able to be solved - I added test cases here - 9c8a6f0e3aba2f05a002c73325cbc5d89062df73 and so we'll start to see the tests pass as we improve the detection with relation to contrast ratios.

cozmo avatar May 18 '18 20:05 cozmo

Awesome. Thank you @cozmo.

ITsolution-git avatar May 19 '18 17:05 ITsolution-git

Now that #67 has been merged we're...closer. Still failing to binarize your images though I think, which is odd. Will let you know when this issue is resolved.

cozmo avatar Jun 28 '18 06:06 cozmo

Thank you.

ITsolution-git avatar Jun 29 '18 08:06 ITsolution-git