Data Matrix is a 2D barcode symbol designed to pack a lot of information in a very small physical space, including Reed-Solomon error correction in version ECC 200.
Questions tagged [datamatrix]
131 questions
11
votes
2 answers
GS1 barcode parsing
We need to parse the GS1 datamatrix barcode which will be provided by other party. We know they are going to use GTIN(01), lot number(10), Expiration date(17), serial number (21). The problems is that barcode reader output a string, the format is…

BackToSorrento
- 119
- 1
- 1
- 4
9
votes
2 answers
How to locate and read Data Matrix code with python
I'm trying to read a datamatrix barcodes on the bottom of microtubes. I tried libdmtx which has python bindings and works reasonably well when the dots of the matrix are square but much worse when they are round as here:
Another complication is a…

Mische
- 431
- 1
- 4
- 12
9
votes
0 answers
Unknown Encoding for Data Matrix encoded with google Barcode Scanner (Vision)
I'm trying to scan some Data Matrix bar codes with my implementation of the Vision Barcode Scanner, but I'm having issues on the encoded ones.
I'm using:
int codesDetected = Barcode.ALL_FORMATS;
But it still returns Unknown encoding for those…

nsL
- 3,722
- 3
- 23
- 40
9
votes
0 answers
Decode 2d data matrix barcode in HTML/JavaScript (Android)
Context: I need to scan a data matrix barcode with the camera of my android mobile phone. I access the camera over html5 and got the picture into a canvas element.
Approach: I can't find a javascript library for scanning a picture to decode a 2D…

tvelop
- 348
- 1
- 5
- 17
8
votes
1 answer
Unable to read white on black Data Matrix barcode
Data Matrix barcode support was added to iOS 8 and I'm able to use it to read Data Matrix barcodes if they are black on white (dark on light). However, it never reads a white on black (light on dark) barcode.
Reads this fine:
Unable to read…

bobnoble
- 5,794
- 3
- 25
- 32
8
votes
4 answers
DataMatrix-encoding with zxing only generates 14px bitmap
I'm using zxing to generate barcodes with different types (EAN, 2of5 and DataMatrix). Generating in general works fine. The only problem I currently have is that zxing only generates a 14x14 pixel bitmap which is way too small. But only when using…

joschplusa
- 1,353
- 1
- 13
- 20
6
votes
1 answer
Scan multiple barcodes with zxing.net
My aim is to detect multiple datamatrices on a larger image like this (the four big):
Based on several code samples, I made a small test program:
Bitmap image = getImage();
DataMatrixReader reader = new…

András Kovács
- 847
- 1
- 10
- 29
5
votes
1 answer
Decoding Datamatrix as digits using pylibdmtx
I am trying to decode the digits from a Datamatrix.
This is my code
import cv2
from pylibdmtx.pylibdmtx import decode
a = decode(cv2.imread(dmtx.jpg'))
print(a)
The code runs without error. But it doesn't print anything, it gives me an empty…

Sugantharaja
- 121
- 1
- 3
- 14
5
votes
1 answer
DataMatrix vs GS1 DataMatrix
I've been trying to find out if there is a difference between the way information is stored in DataMatrix vs GS1 DataMatrix forms. I'm wondering if a regular DataMatrix scanner can scan a GS1 DataMatrix code or not. Any help on this subject would…

vinnybad
- 2,102
- 3
- 19
- 29
4
votes
1 answer
Use data matrix as a fiducial to obtain angle of rotation
I have a bunch of images such as the one above. They each contain a data matrix, but do not guarantee that it is oriented to an axis. Nevertheless, I can read these matrices with libdmtx pretty reliably regardless of their rotation. However, I also…

Jon Zavialov
- 231
- 1
- 10
4
votes
1 answer
Flutter / Dart datamatrix code scanning library
Is there a way to scan datamatrix QR codes in Dart ?
Does anyone know a lib that could answer my needs ?
I found this lib : barcode_scanner but it's part of the Scanbot SDK Scanner that isn't free to use.
I'm looking for something more opensource…

Naweap
- 105
- 8
3
votes
2 answers
pylibdmtx library, try except not working - Assertion `value >= 0 && value < 256'
Question in short:
We have a specific png image, where searching the datamatrix codes on a given location with the help of pylibdmtx library. At that specified location (given xmin, ymin, xmax, ymax coordinates in the code), we crop the image,…

SoajanII
- 323
- 5
- 19
3
votes
3 answers
How would I identify which columns and rows match between two data matrices?
I have two data matrices of different dimensions stored as objects in R (I am using Rstudio with R v4.0.2 in Windows 10):
m1 = 1 column x 44 rows (this is a list of names with no spaces).
m2 = 500,000 columns x 164 rows (this contains a string of…

Justin
- 33
- 5
3
votes
1 answer
How can I read datamatrix codes using opencv in python?
new python user here. I'm working on a project with a raspberry pi with a picamera to decode Datamatrix codes. I'm trying to recycle some parts of an older project that I did which decodes QR codes and works great but doesn't support datamatrix…

Flaxamax
- 31
- 1
- 2
3
votes
0 answers
Datamatrix JavaScript Scanner
Looking for a simple way to scan a data matrix from a picture, or even better: from a live video.
I have tried this https://github.com/zxing-js/library
I just copied their example for UMD and I get an error because of the 'await'.
Thanks

getpo.st
- 51
- 2
- 6