#python2.6importzbarscanner=zbar.ImageScanner()scanner.parse_config("enable")pil=Image.open("char.png").convert('L')width,height=pil.sizeraw=pil.tostring()image=zbar.Image(width,height,'Y800',raw)scanner.scan(image)data=''forsymbolinimage:data+=symbol.d