平时有些图片需要扫描才知道里面的链接地址,通过以下代码可实现解析
import pyzbar.pyzbar as pyzbar
image = Image.open("webfilehelper.jpg")
barcodes = pyzbar.decode(image)
print (barcodes)
微信扫一扫
平时有些图片需要扫描才知道里面的链接地址,通过以下代码可实现解析
import pyzbar.pyzbar as pyzbar
image = Image.open("webfilehelper.jpg")
barcodes = pyzbar.decode(image)
print (barcodes)
相关推荐