Plot the QR code This function plots to QR code to the open device.
Source:R/plot.R
plot.qr_code.RdPlot the QR code This function plots to QR code to the open device.
See also
opencv::ocv_qr_detect() for reading QR codes.
Other qr:
coordinates(),
generate_svg(),
print.qr_code(),
qr_code(),
qr_event(),
qr_location(),
qr_sepa(),
qr_wifi()
Other qr:
coordinates(),
generate_svg(),
print.qr_code(),
qr_code(),
qr_event(),
qr_location(),
qr_sepa(),
qr_wifi()
Examples
qr <- qr_code("HELLO WORLD")
plot(qr)
# Test the QR code with the opencv package
if (requireNamespace("opencv")) {
png("test.png")
plot(qr)
dev.off()
opencv::ocv_qr_detect(opencv::ocv_read('test.png'))
unlink("test.png")
}
#> Loading required namespace: opencv