html5-qrcode icon indicating copy to clipboard operation
html5-qrcode copied to clipboard

Barcode scanning not working

Open seAfnan opened this issue 3 years ago • 2 comments

I have tried. QR code scanning is OK but Barcode is not working in my project. Here is my js code...

<script>
  var html5QrcodeScanner = new Html5QrcodeScanner(
    "reader", { fps: 10, qrbox: 250, experimentalFeatures: { useBarCodeDetectorIfSupported: true } }
  );
      
  function onScanSuccess(decodedText, decodedResult) {
    console.log('Scan Result: '+ decodedText);
    console.log('Scan Result: '+ decodedResult);
    html5QrcodeScanner.clear();
  }

  function onScanError(errorMessage) {
    console.log('Scan Error: '+ errorMessage);
  }

  html5QrcodeScanner.render(onScanSuccess);
</script>

seAfnan avatar Jun 19 '22 12:06 seAfnan

again, you must tell us which barcode, and upload an image, and provide all your OS and browser info

ROBERT-MCDOWELL avatar Jun 19 '22 12:06 ROBERT-MCDOWELL

again, you must tell us which barcode, and upload an image, and provide all your OS and browser info

Any type of barcode, currently i am scanning UPC barcode on Windows 10 with front cam of laptop on Edge browser.

image

(closed accidently, so i reopened)

seAfnan avatar Jun 19 '22 14:06 seAfnan

Will be fixed in version 2.3.1. Please track in this parent bug https://github.com/mebjas/html5-qrcode/issues/605

Closing this one.

mebjas avatar Nov 16 '22 15:11 mebjas