Page 1 of 1

Different result in barcode reading

Posted: Sun May 10, 2015 12:07 am
by maxvalt
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

Re: Different result in barcode reading

Posted: Sun May 10, 2015 1:21 pm
by Loïc
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