'why does pyzbar remove some digits from the barcode?
the code is of type Interleaved code 2 of 5 (I25), and whenever I try to read it, the output always removes the number after the "-", leaving the code invalid, and in banking applications, it does not remove the digits .
image = cv2.imread('code.pgn')
barcodes = decode(image)
for barcode in barcodes:
(x, y, w, h) = barcode.rect
cv2.rectangle(image, (x, y), (x + w, y + h), (0, 0, 255), 2)
barcode_data = barcode.data.decode("utf-8")
print('barcode_data')
the original barcode is like this:
this is a barcode from brazil, and when python-barcode read it, the detected type is I25
the output looks like this:
82620000000610200097000784066170100072722015 (I25)
so if i create another barcode with these numbers from the output it doesnt work
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

