Open
Description
With reference to the example of reading qr code from image
I tried to pass the sample qr code image path to
const codeReader = new ZXing.BrowserQRCodeReader() codeReader.decodeFromImage('./assets/images/sample.png').then((result) => { console.log(result) // document.getElementById('result').textContent = result.text }).catch((err) => { console.error(err) document.getElementById('result').textContent = err })
But it is throwing below error
message:"element with id './assets/images/sample.png' not found"
type:"ArgumentException"