2019-03-01
阅读量:
591
python如何阅读二维码
扫描和读取QR码相对简单。在创建QR对象时,我们必须简单地指定QR码的路径作为参数。假设我们正在尝试解码在文章开头创建的QR代码。
# Python 2.x program to Scan and Read a QR code
from qrtools import QR
my_QR = QR(filename = "home/user/Desktop/qr.png")
# decodes the QR code and returns True if successful
my_QR.decode()
# prints the data
print my_QR.data






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
1条评论