How the scanner works
Each image or camera frame is drawn onto a hidden canvas at up to 1280 pixels, and jsQR looks for the three square finder patterns, reads the grid of modules and decodes the error-corrected data. The camera stops as soon as a code is read.