mebjas / html5-qrcode

A cross platform HTML5 QR code reader. See end to end implementation at: https://scanapp.org
https://qrcode.minhazav.dev
Apache License 2.0
4.71k stars 938 forks source link

QR code parse error, error = D: No MultiFormat Readers were able to detect the code. #757

Open alexduca opened 1 year ago

alexduca commented 1 year ago

I'm trying to use the library for a website of mine, in the desktop version it doesn't seem to give errors, as for the mobile version (I have a Samsung Galaxy S10) it keeps showing me the camera with a greenish color.

I am using this version html5-qrcode.min.js and this is my code:

var QRCodeScanner = new Html5QrcodeScanner("qr-reader", { fps: 10, qrbox: 220 } );
QRCodeScanner.render( ScannerGetData );
function ScannerGetData(text, fulldata) { console.log(text,fulldata); }

I tried catching the render() error and the outputs that are looped back to me are as follows: QR code parse error, error = No barcode or QR code detected. QR code parse error, error = D: No MultiFormat Readers were able to detect the code.

dobberph commented 1 year ago

I have the same issue. For me it is on desktop, chrome, xampp. When the video opens it starts an endless loop with "QR code parse error, error = D: No MultiFormat Readers were able to detect the code" I just copied the exact code from: https://openjavascript.info/code-lives/index.html

SmoKE585 commented 1 year ago

there is a solution?

alexduca commented 1 year ago

there is a solution?

I am waiting for a hero to give me a helpful suggestion. @mebjas

ROBERT-MCDOWELL commented 1 year ago

despite I'm not interested to be a hero, this error msg means that your qrcode is not readable for various reason like too small, in inverted black and white, there are glitches around the qrcode square etc... or the qrcode itself is not good.

alexduca commented 1 year ago

despite I'm not interested to be a hero, this error msg means that your qrcode is not readable for various reason like too small, in inverted black and white, there are glitches around the qrcode square etc... or the qrcode itself is not good.

the problem is not in reading the qrcode, since from mobile it can't even load my camera preview and shows me a greenish square... from desktop it can read it without any problem even though it gives this error.

W113N23 commented 1 year ago

This question is too strange. A few days ago, scanning the code was still possible. Today, scanning the code was the same error

MamtaDeswalRadiant commented 1 year ago

After adding error callback, this error comes repeatedly. for eg.: html5QrcodeScanner.render(props.qrCodeSuccessCallback, props.qrCodeErrorCallback); if I pass props.qrCodeErrorCallback for the error callback. Then successCallback never called, repeatedly error callback call. If I use this html5QrcodeScanner.render(props.qrCodeSuccessCallback) then code work fine but can't trigger error. How I can implement error callback so that when user try to scan any dummy image, i can show error alert.

alexduca commented 11 months ago

is this problem fix? someone has a solution?

MrTuanhp commented 8 months ago

help me

MamtaDeswalRadiant commented 8 months ago

This problem still exist. Please share the solution, if anyone found.

ROBERT-MCDOWELL commented 8 months ago

all the problems you encounter with a camera on mobiles are linked to the BROWSER you are using and its PERMISSIONS. nothing to do with html5-qrcode. So please try to learn and follow from your browser repo what's changed and why.

MamtaDeswalRadiant commented 8 months ago

all the problems you encounter with a camera on mobiles are linked to the BROWSER you are using and its PERMISSIONS. nothing to do with html5-qrcode. So please try to learn and follow from your browser repo what's changed and why.

@ROBERT-MCDOWELL It's not related to only mobile and browser, the same problem exist with webcam also. Error handling issue is persist in the plugin, it's not related to browser permission.

acharmat commented 6 months ago

Anyone found a solution ?

This problem still exist

alexduca commented 4 weeks ago

Hi all, I am wondering if after some time this problem has been solved and if anyone has continued with the search and would like to share some results and/or solution! Thanks