@lostinbrittany/jsqrcode
v3.0.0
Published
A JavaScript module, ShadowDom compatible version of Lazersoft superb JavaScript QRCode reader
Downloads
24
Maintainers
Readme
JavaScript QRCode reader for HTML5 enabled browser. 2011 Lazar Laszlo http://lazarsoft.info
Try it online: http://webqr.com
This is a port of ZXing qrcode scanner, http://code.google.com/p/zxing.
Usage:
Include the scripts in the following order:
Set qrcode.callback to function "func(data)", where data will get the decoded information.
Decode image with: qrcode.decode(url or DataURL). Decode from canvas with "qr-canvas" ID: qrcode.decode()
[new from 2014.01.09] For webcam qrcode decoding (included in the test.html) you will need a browser with getUserMedia (WebRTC) capability.