datamatrix

GS1 barcode parsing

妖精的绣舞 提交于 2019-12-05 09:29:01
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 like this 01076123456789001710050310AC3453G321455777. Since there is not separator and both serial number and lot number are variable length according to GS1 standard, we have trouble to identify segments. My understanding is that it seems like the best way to parse is to embed the parser in the scanning device, not from the application. But we didn't

DataMatrix-encoding with zxing only generates 14px bitmap

狂风中的少年 提交于 2019-12-05 05:09:14
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 DataMatrix! EAN13, 2of5/ITF and QR-Codes work perfect with the same code. My code: BitMatrix bitMatrix = new DataMatrixWriter().encode(message, BarcodeFormat.DATA_MATRIX, 1080, 1080, null); int height = bitMatrix.getHeight(); //height is always 14, it doesn't matter what value I pass to the encoder As you can imagine this looks pretty shitty on a

Generating GS1 DataMatrix using ZXing.Net

☆樱花仙子☆ 提交于 2019-12-04 19:42:40
What I need Is to generate a working GS1 DataMatrix, using this test content: (240)1234567890(10)AA12345(11)123456(21)1(96)1234567 Steps I've downloaded the nuget package from here: and I've created a console app that uses this code: private static void DoGs1DataMatrixStuff() { var writer = new BarcodeWriter { Format = BarcodeFormat.DATA_MATRIX }; writer .Write("(240)1234567890(10)AA12345(11)123456(21)1(96)1234567") .Save(@"C:\Temp\barcode.png"); } There's no obvious specific GS1_DataMatrix format I can use ... that gives me which if read by a scanner app on my smartphone, gives the literal

How to locate and read Data Matrix code with python

此生再无相见时 提交于 2019-12-04 09:04:54
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 shine which in some cases reaches the code area. The barcodes are scanned in a rack on a flatbed scanner so they have constant size and are roughly centered. The orientation is random. I came to a conclusion I'd have to locate the codes and improve the image myself. I use python and OpenCV 3.1. I have already tried thresholding, contours: import

Unable to read white on black Data Matrix barcode

余生颓废 提交于 2019-12-04 08:24:03
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 this: Per Data Matrix ECC 200, light on dark should be supported. Anyone have an idea how to get iOS 8 to read a light on dark Data Matrix barcode? You can invert the colors of your AVCaptureSession in real time, allowing you to read the Data Matrix code. You can use GPUImage to invert the colors. It's fast and plugs in easily. Just invert and let