Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to decode QR code. #334

Open
yapzhenyie opened this issue Apr 29, 2024 · 1 comment
Open

Failed to decode QR code. #334

yapzhenyie opened this issue Apr 29, 2024 · 1 comment

Comments

@yapzhenyie
Copy link

I'm facing one issue where the qrcode library not able to decode the below qrcode image.

I tried decode in some other websites or even using my phone qr code scanner. It was able to decode, but @nuintun/qrcode library not.
WhatsApp Image 2024-04-27 at 23 45 29

@nuintun
Copy link
Owner

nuintun commented May 8, 2024

The QR code decoding does not perform extensive image preprocessing for performance considerations.

The example image you provided has too high a resolution, resulting in imperfections in the image after binarization.

image

You can try resizing the image to an appropriate size before decoding.

326458163-1fbca97f-2fee-4110-b88d-9387d5d55408

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants