Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 212 Bytes

pyzbar.md

File metadata and controls

16 lines (10 loc) · 212 Bytes

pyzbar

python 版的 zbar ,用来二维码识别

# -*- coding: utf-8 -*-

from PIL import Image
from pyzbar.pyzbar import decode


d = decode(Image.open("qrcode_demo.png"))
print d
print d[0].data