NaturalHistoryMuseum / pyzbar

Read one-dimensional barcodes and QR codes from Python 2 and 3.
MIT License
717 stars 175 forks source link

pyzbar not detecting Code93 barcodes #72

Open denisb411 opened 4 years ago

denisb411 commented 4 years ago

I'm trying to use the library to decode Code93 barcodes but the library is not being able to detect it. I looked at the source code and apparently it's able to scan this type of barcode. Is there something wrong with my environment or the way I'm using the library?

I am using the version 0.1.8 of pyzbar along with python 3.7.3 and load using:

barcodes = pyzbar.decode(cv2.imread(pic_path))

The image I am using:

image

I know this is detectable because this website can read normally.

image

stekman commented 4 years ago

I have the same issue on Mac, but when I run it in docker in Linux container, it works, so in my case it is the pre-installed zbar library that is not working.