dmtx/libdmtx

not able to read datamatrix

bsdis opened this issue · 6 comments

bsdis commented

Does anyone have an idea why I cannot read this QR code using libdmtx software? I dont think the quality of the image is that bad... https://i.ibb.co/FnQkcSL/platedmtrx.png

First it is a Datamatrix not QR code. The problem is most probably the quality, try to binarize the image and than pass it to the library. Also you need to have at least one module empty space on each side.

bsdis commented

Hi, even this binarized image is not being decoded:
https://i.ibb.co/Gk7sFZ1/Screen-Shot-2019-06-09-at-17-44-53.png
Why?

msva commented
msva commented
msva commented

Btw, talking about terminology.
"Binarization" is not just making it b/w. It is more like "making it easier to decoder to represent cells like binary code". And there, well, should be cells (square ones), although decoder allows some deviation, but there is no magic exists in the world, so decoder can't perform the miracle.
I've properly binarized your initial (soldered) matrix, and got the "8205279" as decoding result:
image

Although, your second image looks like the broken one (maybe, it is either randomly picked "pseudocells", or some "pseudocells" was colored by mistake (or even some of them are missing)).

I don`t know where place this
https://github.com/dmtx/libdmtx/wiki/Repair-Error

I found error. May be it can fix this