forked from LazarSoft/jsqrcode
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
41 lines (32 loc) · 1.79 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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="grid.js"></script>
<script type="text/javascript" src="version.js"></script>
<script type="text/javascript" src="detector.js"></script>
<script type="text/javascript" src="formatinf.js"></script>
<script type="text/javascript" src="errorlevel.js"></script>
<script type="text/javascript" src="bitmat.js"></script>
<script type="text/javascript" src="datablock.js"></script>
<script type="text/javascript" src="bmparser.js"></script>
<script type="text/javascript" src="datamask.js"></script>
<script type="text/javascript" src="rsdecoder.js"></script>
<script type="text/javascript" src="gf256poly.js"></script>
<script type="text/javascript" src="gf256.js"></script>
<script type="text/javascript" src="decoder.js"></script>
<script type="text/javascript" src="qrcode.js"></script>
<script type="text/javascript" src="findpat.js"></script>
<script type="text/javascript" src="alignpat.js"></script>
<script type="text/javascript" src="databr.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.
[new from 2014.08.14]
Install it from bower package manager with `bower install jsqrcode`.
All the scripts are concatenated in the right order in a single file in the dist folder.
More info at http://bower.io