Skip to content

Unable to read QR code #233

@AmeyMore98

Description

@AmeyMore98

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions