V2.0.11
版本发布时间: 2021-06-21 00:21:26
mebjas/html5-qrcode最新发布版本:v2.3.8(2023-04-15 13:48:51)
Version 2.0.11
- Add support for native BarcodeDetector based scanning.
- On Chrome
ZXing
based decoder takes20-25
ms on my Mac book pro 16. - On Chrome
BarcodeDetector
based decoder takes8.6-11 ms
on my Mac book pro 16.
// How to enable // Note: will only work if browser / OS supports this HTML api. // Read more: https://developer.mozilla.org/en-US/docs/Web/API/BarcodeDetector#browser_compatibility function onScanSuccess(decodedText, decodedResult) { // handle success. } let html5QrcodeScanner = new Html5QrcodeScanner( "reader", { fps: 10, qrbox: 250, experimentalFeatures: { useBarCodeDetectorIfSupported: true } }); html5QrcodeScanner.render(onScanSuccess);
- On Chrome
1、 html5-qrcode.min.js 380.65KB