qr_scan_js_array: Scan a pixel array for QR codes with the JS engine.

View source: R/js_helpers.R

qr_scan_js_arrayR Documentation

Scan a pixel array for QR codes with the JS engine.

Description

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.

Usage

qr_scan_js_array(arr, engine = NULL)

Arguments

arr

A 3D array of types raw, double, or integer.

engine

An initialized V8 context, see qr_v8_init.

Value

A list with metadata about any identified QR code.


brianwdavis/quadrangle documentation built on Feb. 27, 2023, 6:36 p.m.