Error with PdfOCRCreateFromMultipageTIFF

Discussions about machine vision support in GdPicture.
Post Reply
anvasi
Posts: 33
Joined: Fri Dec 12, 2008 1:16 pm

Error with PdfOCRCreateFromMultipageTIFF

Post by anvasi » Wed Mar 11, 2009 6:57 pm

HI,

we have problems when we want reconize with this code.
If we add characters in CharWhiteList, don't generate a valid image pdf with ocr but if CharWhiteList = "" it work fine.

Code: Select all

 
            oGdPictureImaging.TiffOpenMultiPageAsReadOnly(True)
            ImageID = oGdPictureImaging.TiffCreateMultiPageFromFile(DirListBox1.Path & "\" & FileListBox1.Items(ficheros).ToString)
            oGdPictureImaging.PdfOCRCreateFromMultipageTIFF(ImageID, GdPicture.TesseractDictionary.TesseractDictionarySpanish, "C:\Archivos de   programa\GdPicture.NET\Redist\OCR", "ABCDEFGHIJKLMNÑOPQRSTUWXYZ", ruta & "\" & Mid(FileListBox1.Items(ficheros).ToString, 1, Len(Trim(FileListBox1.Items(ficheros).ToString)) - 4) & ".pdf", True, "", "catimatge", "catimatge", "", "catimatge")
            oGdPictureImaging.ReleaseGdPictureImage(ImageID)
            oGdPictureImaging.OCRTesseractClear()


Thanks a lot,

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

Re: Error with PdfOCRCreateFromMultipageTIFF

Post by Loïc » Thu Mar 12, 2009 7:27 am

Hi,

Please, send me your input multipage image and the resulting pdf at esupport (at) gdpicture (dot) com.

Best regards,

Loïc

anvasi
Posts: 33
Joined: Fri Dec 12, 2008 1:16 pm

Re: Error with PdfOCRCreateFromMultipageTIFF

Post by anvasi » Thu Mar 12, 2009 11:13 am

Hi loïc,

I send you and email with the images but I believe that the problem is in the letter Ñ because if I don't add the code works well

Best regards,

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

Re: Error with PdfOCRCreateFromMultipageTIFF

Post by Loïc » Thu Mar 12, 2009 4:35 pm

Ok thank you for your mail !

We found a bug into the library. Tomorrow we will publish a fixed release.

The problem came from the utf8 conversion of char Ñ.

Kind regards,

Loïc

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

Re: Error with PdfOCRCreateFromMultipageTIFF

Post by Loïc » Fri Mar 13, 2009 10:21 am

Hi,

This problem have been fixed in the current release.

Best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest