Closed moin18 closed 5 years ago
zbar-py does accept only the grayscale images read into 2d-array :100:
so use the following to read the image
im = cv2.imread('/Users/mquadri/Desktop/pepsi_barcode.jpeg', cv2.CV_LOAD_IMAGE_GRAYSCALE)
CV_LOAD_IMAGE_GRAYSCALE
has been replaced with IMREAD_GRAYSCALE
On OS X, with python 2.7 I am getting below error while running
scanner.scan(...)
functionAny idea on how to fix it?
PS: On using the
imread()
function from the example code, it is working fine