quadrangle: quadrangle: Wrangle QR codes out of images.

quadrangleR Documentation

quadrangle: Wrangle QR codes out of images.

Description

The quadrangle package provides wrappers for two external libraries that read QR codes: quirc (C++ via Rcpp) and jsQR (JavaScript via V8).

Primary scanning functions

qr_scan reads files or magick objects and scans using both approaches.

  1. qr_scan_cpp wraps only the C++ library and tries some image manipulation algorithms if detection is initially unsuccessful.

  2. qr_scan_js_from_corners wraps only the JS library and tries some image manipulation algorithms (especially cropping) if detection is initially unsuccessful.

Lower-level APIs

  • rcpp_qr_scan_array takes a pixel brightness vector of raw or integer and passes it to the C++ library.

  • qr_scan_js_array takes a 3D pixel array (RGBA, w, h) and passes it to the JS library.


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