我是靠谱客的博主 端庄白昼,这篇文章主要介绍python 解析二维码图片,现在分享给大家,希望可以做个参考。

python 解析二维码图片

from pyzbar.pyzbar import decode
from PIL import Image
img = Image.open("d:/发票.jpg")
barcodes = decode(img)
print(barcodes)

结果[Decoded(data=b'01,10,044001900411,20098969,1361.93,20200227,59026175910007795354,FA7A', type='QRCODE', rect=Rect(left=3, top=4, width=66, height=66), polygon=[Point(x=3, y=4), Point(x=3, y=70), Point(x=68, y=69), Point(x=69, y=4)], quality=1, orientation='UP')]

最后

以上就是端庄白昼最近收集整理的关于python 解析二维码图片的全部内容,更多相关python内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(73)

评论列表共有 0 条评论

立即
投稿
返回
顶部