Different result in barcode reading

Discussions about barcode reading and writing
Post Reply
maxvalt
Posts: 19
Joined: Thu Dec 08, 2011 3:52 pm

Different result in barcode reading

Post by maxvalt » Sun May 10, 2015 12:07 am

Hello,
I need to read a barcode in pdf file. I use the project sample Barcode Recognition - 1D and I read the coordinate of barcode.
In a second project use the coordinate to read a bar.code but I cannot read it.

I use this code :

Code: Select all

            dim SinglePDF as string = "c:\myPDFile"
            If oGdPictureImaging.GetDocumentFormatFromFile(SinglePDF) = DocumentFormat.DocumentFormatPDF Then
                Dim oPDF As GdPicturePDF = New GdPicturePDF
                If oPDF.LoadFromFile(SinglePDF, False) = GdPictureStatus.OK Then
                    m_ImageID = oPDF.RenderPageToGdPictureImage(200, True)
                    oPDF.CloseDocument()
                End If
            Else
                m_ImageID = oGdPictureImaging.CreateGdPictureImageFromFile(SinglePDF)
            End If
           oGdPictureImaging.ResetROI()
           Call oGdPictureImaging.SetROI(LeftAreaROI, TopAreaROI, WidthAreaROI, HeightAreaROI)
           oGdPictureImaging.Barcode1DReaderDoScan(m_ImageID)
          If oGdPictureImaging.GetStat = GdPictureStatus.OK Then
            bcfound = oGdPictureImaging.Barcode1DReaderGetBarcodeCount
in bcfound I have always zero .
Can you help me ?
I use the 8.5 net version.
Bye

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

Re: Different result in barcode reading

Post by Loïc » Sun May 10, 2015 1:21 pm

Hello Massimo,

You should try with the latest major release. The version 8 has been discontinued since years and latest version come with lot of improvements in barcode detection accuracy.

Thank you for your understanding.

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest