zbar解码二维码和条形码示例
复制代码 代码如下:#!/usr/bin/env python# coding: u8import osimport zbarimport Imageimport urllibimport uuiddef qrRead(url):uuid1 = uuid.uuid1()filename=str(uuid1)+”.jpg”print uuid1 urllib.urlretrieve(url, filename)# create a readerscanner = zbar.ImageScanner()# configure the readerscanner.parse_config(‘enab