scan.read finds the barcodes and QR codes in a picture. The browser's own detector does it where there is one; Mote's reader, in wasm in a worker, does it everywhere else.
scan.readAn image in, {format, text}[] out: qr_code, ean_13, ean_8, code_128, code_39, itf. A UPC-A is an ean_13 with a 0 in front.
A picture of a code
Or your ownDrop a PNG or JPEG here, or pick one.
Use the browser's readerscan.read(picture): BarcodeDetector where there is one
scan-qr1.png
Reading…
The two readers
Both on the picture chosen above.
Both readersMote's reader is the same on every browser; the browser's may know more formats, or not exist (iOS Safari, Firefox, desktop Safari), where scan.read falls back by itself.
Mote's reader{native: false}
Reading…
scan.read(picture)the browser's, else Mote's
Reading…
Turned, blurred, smallThe same picture through img first, then Mote's reader: see how far it can go before the code is lost.
Turn
Blurradius 0
Size100%
Reading…
The camera element reads codes live with the same battery: see Media, under Elements.