自述文件说“对于网络摄像头 qrcode 解码(包含在 test.html 中),您将需要来自http://www.taboca.com/p/camcanvas/的 camcanvas.swf ”,因此他们的 test.html 文件将不起作用开箱即用的网络摄像头。
但是,作为中途步骤,您可以非常轻松地解码 QR 文件的图片:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>QR Decoder Demo</title>
<!-- Include scripts as instructed in README -->
<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>
<script type="text/javascript">
/*<![CDATA[*/
// tell application what to do when a QR code is decoded
qrcode.callback = function(data){
alert("Decoded URL: "+data);
}
// decode a QR code for http://bbc.co.uk/programmes
qrcode.decode("http://2d-code.co.uk/images/bbc-logo-in-qr-code.gif");
/*]]>*/
</script>
</head>
<body></body>
</html>