Slide 21
Slide 21 text
BarcodeDetector
boundingBox: DOMRectReadOnly
bottom: 293.48682403564453
height: 181.0986328125
left: 272.1447448730469
right: 445.8060607910156
top: 112.38819122314453
width: 173.66131591796875
x: 272.1447448730469
y: 112.38819122314453
cornerPoints: Array(4)
0: {x: 275.6146545410156, y: 112.38819122314453}
1: {x: 445.8060607910156, y: 126.80418395996094}
2: {x: 437.9911193847656, y: 293.48681640625}
3: {x: 272.1447448730469, y: 292.72515869140625}
length: 4
format: "qr_code"
rawValue: "https://design.dena.com/"
検出できる Barcode Format は複数。
出典:W3C Community Group
aztec, code_128, code_39, code_93, codabar,
data_matrix, ean_13, ean_8, itf, pdf417, qr_code,
unknown, upc_a, upc_e
const barcode = await detectBarcode(element)
console.log(barcode)