Error when trying to decode PDF417 code python

191 views
Skip to first unread message

Santiago Martinez

unread,
Mar 17, 2021, 2:15:28 PM3/17/21
to zxing
Hi!
I'm trying to decode a pdf417 code from an ID. However, whenever I try to use the zxing.BarCodeReader().decode() function I get the following error:
"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 175: invalid start byte". This only happens when I try to decode this specific barcode, when I try to decode other pdf417 codes it works just fine. 
Any idea what could be going wrong? Thanks in advance!

PS. Attached you can find the barcode I'm using for this example.

dense.jpeg

Sean Owen

unread,
Mar 17, 2021, 7:33:36 PM3/17/21
to Santiago Martinez, zxing
That looks like you're using another library that forked this library's code. It might be specific to that fork. But it also doesn't seem to decode in this library. Hard to say - are you sure it decodes maybe with other decoders?

--
You received this message because you are subscribed to the Google Groups "zxing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zxing+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zxing/2ba68c88-e751-4f57-9034-5bd202de8216n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages