Hacker News new | ask | show | jobs
by amelius 1567 days ago
I'm still looking for an open source python library that can decode Data-Matrix barcodes as seen on Digikey bags. Should I give up and switch to JavaScript+browser?
3 comments

For Digikey bags (we make eletronics) we use SwipeTrack app + JS.
zxing-cpp has a Python wrapper that should work for that.
zxing does not have a usable datamatrix decoder last I checked. it's there but it's no good.
I just tried the example zxing-cpp Python module wrapper script and it worked with datamatrix.png from the pylibdmtx test suite. Hmm, but read_datamatrix from pylibdmtx detects two values while zxing-cpp detects one.
Is pylibdmtx not up to it?
It's not great but libdtmx is the best open source datamatrix decoding as far as I know.
libdtmx is great, but it's really slow. Can't do real-time detection (as in scanning from a continuous camera feed) with it.