Home > Net >  Pyzbar does not recognize CODE-128 barcode
Pyzbar does not recognize CODE-128 barcode

Time:01-28

I am trying to read text encoded in barcode - I am using pyzbar like this:

from pyzbar import pyzbar
import cv2

img = cv2.imread("example/path")
barcodes = pyzbar.decode(img, symbols=[pyzbar.ZBarSymbol.CODE128])

print(barcodes)

It normally works, but in the last batch of barcodes that I have received, pyzbar cannot read them - output of pyzbar.decode is []. There is one example:

enter image description here

I have tried to put it into enter image description here

enter image description here

  • Related