html5-qrcode
html5-qrcode copied to clipboard
Datamatrix codes can only be scanned at a perfect angle
It seems like Datamatrix codes are much harder to scan using this library than QR codes, and I don't think it's anything fundamental about the codes because my handheld scanner is able to scan both types reliably from any angle.
This library can impressively scan QR codes from extreme angles, sideways, and upsidedown, but for some reason, Datamatrix codes can ONLY be scanned at a perfect head-on angle, and even then, only from facing perfectly vertical. The view can't be tilted 45 degrees, or even 90 degrees. Only 0 degrees and 180 degrees (upside down) works. 1D barcodes are a bit hard to scan as well, but even then, it doesn't struggle with anything else I've tried nearly as much as with Datamatrix.
Why does it struggle with Datamatrix when QR is easily handled from any angle?
Desktop:
- OS: Windows
- Browser: Chromium
- Version: 2.3.8
I'm facing the same issue and have to solve it, because our system depends on it. So you're not alone. Btw. another somewhat similar issue: Even if the resolution is sufficient for the scan, the code must be held very close to the camera. I will also have to solve this.
To demonstrate how severe this issue really is:
these images can't be scanned:
So I did some imaging magic and this works:
@SaibotMagd what had you done? can you share the same to everyone please.
@SaibotMagd what had you done? can you share the same to everyone please.
Hi, i have bookmarked this issue and will try to post news if i have any. if i make any changes to the way i read qr codes, these will be part of my sample tracker and documented there: https://github.com/SaibotMagd/dmtxSampleCreator
Today I can only say that the reading of codes is unreliable but usable for what I'm doing. It seems like the distortion correction does not work well enough and needs to be improved, so I worked on that but wasn't able to make progress yet. But as I said, I have to solve it no matter what, so I will.