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

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

Open
Stefanbracke opened this issue Feb 17, 2022 · 5 comments

Comments

@Stefanbracke
Copy link

(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
Copy link

Are there any updates on this issue??

@lvillacin
Copy link

Any updates on this?

@SahilAggarwal2004
Copy link

Did you find the solution?

@Stefanbracke
Copy link
Author

Still having this problem.

@shmodarresi
Copy link

I also have this problem.
Is there any updates?

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

5 participants