BarCode 1d Ok but 2d fails

Discussions about datamatrix barcode reading and writing
Post Reply
fierikit
Posts: 12
Joined: Mon Nov 05, 2007 7:03 pm
Location: Italy
Contact:

BarCode 1d Ok but 2d fails

Post by fierikit » Thu Sep 02, 2010 5:57 pm

Hi
i have just requested trial form 1d and 2d barcode recognition
i tryied with some documents and a lot of them had both type of barcode
1d barcode recognition was always perfect
2d barcode recognition always fails
all document were in pdf format (how can i attach you one?)
here is my sample code:

Code: Select all

Dim i As Integer
Dim nBar As Long
Dim GdvPicture As Object
Dim gdImage As GdPicturePro5.cImaging

Set GdvPicture = CreateObject("gdpicturepro5.GdViewer")
With GdvPicture
    .SetLicenseNumber (GDPICTURELICENSE)
    Call .DisplayFromFile("C:\VB6Project\AssoBox\Parking\CDP_LIbretti\CdP500021.pdf")
End With
Set gdImage = New GdPicturePro5.cImaging
With gdImage
    .SetLicenseNumber (GDPICTURELICENSE)
    .SetLicenseNumberDataMatrixBarcodeRecognition (GD2DBARCODELICENSE)
    .ConvertTo1Bpp
    Call .BarcodeDataMatrixReaderDoScan(1)
    nBar = .BarcodeDataMatrixReaderGetBarcodeCount
    For i = 1 To nBar
        MsgBox "Value: " + .BarcodeDataMatrixReaderGetBarcodeValue(i)
        'MsgBox "Type: " + Str(.BarcodeDataMatrixReaderGetBarcodeType(i))
        'MsgBox "Angle: " + Str(.BarcodeDataMatrixReaderGetBarcodeSkewAngle(i))
    Next
    Call .BarcodeDataMatrixReaderClear
    Call .CloseNativeImage
End With

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

Re: BarCode 1d Ok but 2d fails

Post by Loïc » Fri Sep 03, 2010 10:10 am

Hi,

Could you attach some document with 2D barcodes for investigation ?

Also, are you sure they are encoded in DataMatrix format ?

Kind regards,

Loïc

fierikit
Posts: 12
Joined: Mon Nov 05, 2007 7:03 pm
Location: Italy
Contact:

Re: BarCode 1d Ok but 2d fails

Post by fierikit » Fri Sep 03, 2010 10:24 am

- all documents are PDF and i asked you how can i attach them because your utility is not for Pdf
- i'm not sure they are all 2d but some 'well informed' says they surely are, but for me just one type of them is important because is for that i want to buy the tool

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

Re: BarCode 1d Ok but 2d fails

Post by Loïc » Fri Sep 03, 2010 4:25 pm

Hi,

Just zip them and attach the zip. Or simply make a screen-shot.

fierikit
Posts: 12
Joined: Mon Nov 05, 2007 7:03 pm
Location: Italy
Contact:

Re: BarCode 1d Ok but 2d fails

Post by fierikit » Fri Sep 03, 2010 4:44 pm

I attach only the two types imporant for me (as you can see are quite the same)
the very important is CDPAuris.pdf,

i hope you can solve
(i'm proud using gdpicture because in the past you aid me a lot)
good work end good day
Attachments
GDPic.zip
(351.92 KiB) Downloaded 203 times

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

Re: BarCode 1d Ok but 2d fails

Post by Loïc » Fri Sep 03, 2010 5:54 pm

Dude,

these PDF are not Datamatrix but 2D barcode pdf417.

Unfortunately we have not (yet) decoder for this kind of barcode :(

Cheers,

Loïc

fierikit
Posts: 12
Joined: Mon Nov 05, 2007 7:03 pm
Location: Italy
Contact:

Re: BarCode 1d Ok but 2d fails

Post by fierikit » Fri Sep 03, 2010 6:01 pm

sorry to have bother you for a mistake of mine

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

Re: BarCode 1d Ok but 2d fails

Post by Loïc » Fri Sep 03, 2010 6:02 pm

No problem :)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests