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

Scan 1D/2D Code from Image example error #545

Open
jianzhou520 opened this issue Dec 7, 2022 · 3 comments
Open

Scan 1D/2D Code from Image example error #545

jianzhou520 opened this issue Dec 7, 2022 · 3 comments

Comments

@jianzhou520
Copy link

Describe the bug
Scan 1D/2D Code from Image example page cannot run correctly. https://zxing-js.github.io/library/examples/multi-image/

To Reproduce
Steps to reproduce the behavior:

  1. load page and click decode button

Expected behavior
show right qrcode results

Screenshots
image

@jianzhou520 jianzhou520 added the bug label Dec 7, 2022
@mageshk98
Copy link

@jianzhou520 Waiting for this pr to be merged #530.

Meanwhile I am using a workaround. i.e,

const img = document.getElementById('img');
img.videoWidth = 0;
codeReader.decodeFromImage(img).then((result) => { //Logic goes here }

@mikejhill
Copy link

Possibly related, several other examples are failing in 0.19.2. We're running into trouble with many decodeFromImage calls. We reverted to 0.17.1, which works for us.

It looks like #536 might (?) intend to address these. However, I did try applying that change manually and the examples still seem to be failing for me.

https://zxing-js.github.io/library/examples/barcode-image/:
image

https://zxing-js.github.io/library/examples/datamatrix-image/:
image

https://zxing-js.github.io/library/examples/qr-image/:
image

Copy link

Stale issue message

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

No branches or pull requests

3 participants