Skip to content

Instantly share code, notes, and snippets.

@jefBinomed
Created December 3, 2020 12:51
Show Gist options
  • Save jefBinomed/f734c90368ea499a0003dbef129d2d6b to your computer and use it in GitHub Desktop.
Save jefBinomed/f734c90368ea499a0003dbef129d2d6b to your computer and use it in GitHub Desktop.
2020-fugu-barcode-detection-content
[
{
boudingBox: // DOMRectReadOnly / The position and size of the face
{
bottom: xxx.xxx // absolute bottom position in the image
height: xxx.xxx // absolute height in the image
left: xxx.xxx // absolute left position in the image
right: xxx.xxx // absolute right position in the image
top: xxx.xxx // absolute top position in the image
width: xxx.xxx // absolute width in the image
x: xxx.xxx // absolute left position in the image
y: xxx.xxx // absolute top position in the image
},
format: 'qr_code', // Could be 'aztec', 'code_128', 'code_39', 'code_93', 'codabar',
// 'data_matrix', 'ean_13', 'ean_8', 'itf', 'pdf417', 'qr_code', 'upc_a', 'upc_e'
rawValue: 'text in the code', // the value of the barcode
cornerPoints: // Position of corner points of barcode
[
{
x: xxx.xxx // left position of element in the image
y: xxx.xxx // right position of element in the image
}
, ...
]
}
,...
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment