DataMatrix problem

Discussions about datamatrix barcode reading and writing
Post Reply
lbleicher
Posts: 16
Joined: Fri Nov 04, 2011 4:51 am

DataMatrix problem

Post by lbleicher » Sat May 26, 2012 11:49 pm

12.png
single barcode image
12.png (10.24 KiB) Viewed 2150 times
Hi-

I have created a Datamatrix decoder (in the code section below) but it fails to recognize a single barcode.

Am I doing something foolish? All I get is "No barcode detected!"

Source file is attached, plus a parsed out subimage which also fails with my code and the example barcode_recognition.exe

Thanks for your help,
Leo

Code: Select all

        Dim ImageID As Integer
        Dim oGdPictureImaging As New GdPicture.GdPictureImaging

        Dim oLicenseManager As New GdPicture.LicenseManager 'Go to http://evaluation-gdpicture.com 
        oLicenseManager.RegisterKEY("xxx")

        ImageID = oGdPictureImaging.CreateGdPictureImageFromFile(datamatrixPath)
        If ImageID <> 0 Then
            If oGdPictureImaging.BarcodeDataMatrixReaderDoScan(ImageID) = GdPictureStatus.OK Then
                Dim BarcodeCount As Integer = oGdPictureImaging.BarcodeDataMatrixReaderGetBarcodeCount()
                If BarcodeCount > 0 Then
                    For i As Integer = 1 To BarcodeCount
                        node.GetProperties().Define("datamatrix_" & i, oGdPictureImaging.BarcodeDataMatrixReaderGetBarcodeValue(i))
                    Next
                Else
                    node.GetProperties().Define("datamatrix", "No barcode detected!")
                End If
                oGdPictureImaging.BarcodeDataMatrixReaderClear()
            End If
            oGdPictureImaging.ReleaseGdPictureImage(ImageID)
        End If
Attachments
easyCodeII_001369_HalfRack.png
array of codes

User avatar
Loïc
Site Admin
Posts: 5594
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: DataMatrix problem

Post by Loïc » Wed May 30, 2012 11:23 am

Hello,

As my humble opinion it is totally impossible to decode your barcode. The image is too dark, and the symbols are too much altered.

I can't provide any solution for such scenario. The problem has to be fixed in the way you capture the image with your camera.

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest