Recently, I found something very interesting and it is about QR codes.
It is really amazing that you can use pure JavaScript to parse the QR code image and get the content it represents.
1.# Friends, try it, please!
My friends, I have prepared an online example for you, you just need to copy the image of the QR code here. Then you can experience its effect!
You can click this link to copy a QR code image.
2. About BarcodeDetector
Parsing QR codes can be done by BarcodeDetector, it is so convenient.
(from mdn) The BarcodeDetector interface of the Barcode Detection API allows the detection of linear and two-dimensional barcodes in images.