forked from oostendo/python-zxing
-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Hello,
I'm running a simple test, trying to read an PDF417 bar code. I'm getting this error:
... zxing_init_.py", line 159, in parse
raw = raw[:-1].decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb9 in position 171: invalid start byte
Here is my code:
import zxing
reader = zxing.BarCodeReader()
barcode = reader.decode("pdf417_bin.png", possible_formats=['PDF_417'], try_harder=True)
print(barcode)
And here is the image to decode:
I used the zxing online decoder https://zxing.org/w/decode.jspx and it works fine, so I want to know if I'm doing something wrong or it is a bug.
Thanks,
Metadata
Metadata
Assignees
Labels
No labels

