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

Unable to read QR code #233

Open
AmeyMore98 opened this issue Jan 31, 2023 · 0 comments
Open

Unable to read QR code #233

AmeyMore98 opened this issue Jan 31, 2023 · 0 comments

Comments

@AmeyMore98
Copy link

jsQR is unable to read the below QR code, but the Google Lens on my Android phone can.

Here's my code snippet:

const bufferWithAlphaChannel = await sharp(
   imgBuffer
)
    .ensureAlpha()
    .raw()
    .toBuffer();

const result = jsQR(
    new Uint8ClampedArray(bufferWithAlphaChannel),
    width,
    height
);

Am I doing something wrong?

QRZbWiGNNCi4yjO_A1XXjip

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

1 participant