使用纯 PHP 实现二维码识别的案例教程

使用纯 PHP 实现二维码识别的案例教程

1、首先下载类库:qrReader类库。

2、引入类库,实例化类库调用就可以了。

调用示例源码:

<?php
header('content-type:text/html;charset=utf-8');
include_once(dirname(__FILE__).'/QrReader/QrReader.php');
$qrcode = new QrReader(dirname(__FILE__).'/1.png');  //图片路径
$text = $qrcode->text(); //返回识别后的文本
echo $text;
?>
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享