getslash-github/jsqrcode
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
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: <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Fgrid.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Fversion.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Fdetector.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Fformatinf.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Ferrorlevel.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Fbitmat.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Fdatablock.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Fbmparser.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Fdatamask.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Frsdecoder.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Fgf256poly.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Fgf256.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Fdecoder.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Fqrcode.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Ffindpat.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Falignpat.js"></script> <script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com.%2Fdatabr.js"></script> 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.