Open toondkn opened 3 years ago
i have the same problem, the view crashes with Error: Could not create a Canvas element.
.
At first glance it seems that the cause is tempCanvasElement = null
missing in the constructor of the transpiled HTMLCanvasElementLuminanceSource
Library works great! Really easy way to get started with scanning 1D/2D codes in the browser.
I wanted to try out the DecodeHintType.TRY_HARDER hint to improve the result accuracy with the following code:
However this fails silently. No errors in the console. The video element never shows any video and the browser disconnects from the webcam a few seconds after giving it permission. This happens in Chromium 98.0.4694.0 as well as Safari 15.1.
Passing other hints works just fine. It is specifically the TRY_HARDER hint that causes a silent failure.