Uncaught (in promise) DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0.
at https://cdn.jsdelivr.net/gh/hiukim/mind-ar-js@0.4.2/dist/mindar.prod.js:2:2507895
at new Promise (<anonymous>)
at Compiler.compileImageTargets (https://cdn.jsdelivr.net/gh/hiukim/mind-ar-js@0.4.2/dist/mindar.prod.js:2:2507675)
at <anonymous>:23:37
How can i bypass this issue?
Also, as i'm using just the Core API to run the Compile operation, programmatically, i don't need to render anything on the canvas.
Why am i seeing this error?
How can i bypass this issue?
Also, as i'm using just the Core API to run the Compile operation, programmatically, i don't need to render anything on the canvas.
My html file is essentially this: https://github.com/hiukim/mind-ar-js-doc/blob/d13ad927647504852b0fa7aaf190a6893db4fa05/static/samples/compile.html
with the following extra code: