zxing-js / browser

ZXing for JS's browser layer with decoding implementations for browser.
MIT License
213 stars 43 forks source link

Error in selectBestPatterns when continously scanning QR code from video #90

Open Stefanbracke opened 2 years ago

Stefanbracke commented 2 years ago
(async() => {
            await ZXingBrowser.BrowserQRCodeReader.decodeFromVideoDevice(deviceId, 'my_video_element', (result, error, controls) => {
                if (result) {
                    console.log(result);
                }

                if(error) {
                    console.log(error);
                    controls.stop();
                }
            });

            console.log('after start');
        })();

Results in this:

e at t.selectBestPatterns (https://unpkg.com/@zxing/browser@latest:1:223270) at t.find (https://unpkg.com/@zxing/browser@latest:1:219112) at t.detect (https://unpkg.com/@zxing/browser@latest:1:224678) at t.decode (https://unpkg.com/@zxing/browser@latest:1:228135) at t.BrowserQRCodeReader.decodeBitmap (https://unpkg.com/@zxing/browser@latest:1:353289) at t.BrowserQRCodeReader.decodeFromCanvas (https://unpkg.com/@zxing/browser@latest:1:353385) at c (https://unpkg.com/@zxing/browser@latest:1:357404) at t.BrowserQRCodeReader.scan (https://unpkg.com/@zxing/browser@latest:1:357666) at t.BrowserQRCodeReader. (https://unpkg.com/@zxing/browser@latest:1:354247) at Generator.next ()

The video is actually running (just before i stop it using the controls.stop() due to the error).

aeswibon commented 2 years ago

Are there any updates on this issue??

lvillacin commented 2 years ago

Any updates on this?

SahilAggarwal2004 commented 2 years ago

Did you find the solution?

Stefanbracke commented 1 year ago

Still having this problem.

shmodarresi commented 1 year ago

I also have this problem. Is there any updates?