qr_scan_js_array | R Documentation |
This is the wrapper for the QR code scanner in the jsQR
library. It
converts an array of pixels (usually from image_data
) into the
appropriate JS object and calls jsQR
to scan it. The first dimension
should length-4 for RGBA values (can be double
0-1, integer
0-255, or raw
0x00-0xff
), and the other dimensions should be width and height.
qr_scan_js_array(arr, engine = NULL)
arr |
A 3D array of types raw, double, or integer. |
engine |
An initialized V8 context, see |
A list with metadata about any identified QR code.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.