browser icon indicating copy to clipboard operation
browser copied to clipboard

Error in selectBestPatterns when continously scanning QR code from video

Open Stefanbracke opened this issue 4 years ago • 5 comments

(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).

Stefanbracke avatar Feb 17 '22 00:02 Stefanbracke

Are there any updates on this issue??

aeswibon avatar May 28 '22 14:05 aeswibon

Any updates on this?

lvillacin avatar Jul 04 '22 20:07 lvillacin

Did you find the solution?

SahilAggarwal2004 avatar Aug 08 '22 13:08 SahilAggarwal2004

Still having this problem.

Stefanbracke avatar Oct 04 '22 12:10 Stefanbracke

I also have this problem. Is there any updates?

shmodarresi avatar Dec 01 '22 11:12 shmodarresi