NaturalHistoryMuseum / pyzbar

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

Missing decodes randomly #88

Open ve9gj opened 3 years ago

ve9gj commented 3 years ago

Hi

I have been testing out pyzbar and it seems to be working 99.9% but every so often it misses a decode and i am not sure why.
For example no matter what I do pyzbar misses 44788 in the attached file. If I print the file a handleld scanner has no problem decoding 44788.
TIA Glenn Capture

cbm755 commented 3 years ago

I also occasionally get "random" failures on QR codes, even synthetic B&W, well-resolved ones. I feel (not much evidence) that its related to vertical black lines.

If you crop the black box around you code (but otherwise identical image) does it work?

ref: https://gitlab.com/plom/plom/-/issues/967#note_442762365