import cv2 from pyzbar.pyzbar import decode qrcode_image = cv2.imread('bbb.png') aa = decode(qrcode_image) print aa
如果Windows安装pyzbar后遇到OSError: [WinError 126]报错,安装Visual C++ Redistributable Packages for Visual Studio 2013
标签:WinError,aa,OSError,pyzbar,报错,126 From: https://www.cnblogs.com/avit/p/17126079.html