Home | Translator | About us | Overview | Software - Download | Evaluate | Order | Support | Contact | F.A.Q. | Documentations | Blog | Newsletter | Site Content Search
Loading...

PdfOCRCreateFromMultipageTIFF hangs

Support for GdPicture Tessaract Plugin.

PdfOCRCreateFromMultipageTIFF hangs

Postby daninden » Fri Nov 27, 2009 2:55 pm

I'm using the function PdfOCRCreateFromMultipageTIFF to create a searchable PDF/A from a MTIFF file.
With some documents this works as expected, other documents hang (take extremely long) on this function (and never return to perform the next line of code).

Code: Select all
                    oGdPictureImaging.OCRTesseractReinit();
                    oGdPictureImaging.OCRTesseractSetPassCount(1);
                    oGdPictureImaging.PdfOCRCreateFromMultipageTIFF(id, TesseractDictionary.TesseractDictionaryDutch, this.apppath + "\\OCR\\", "", path + "pdf", true, "", "Doclogic", "", "", "Doclogic Barcode Processor");
                    oGdPictureImaging.OCRTesseractClear();


maybe someone can help me with this problem.
daninden
 
Posts: 3
Joined: Fri Nov 27, 2009 2:20 pm

Re: PdfOCRCreateFromMultipageTIFF hangs

Postby daninden » Fri Nov 27, 2009 3:10 pm

I tried a different approach to see which page is creating the problem:

Code: Select all
                    int PdfID = oGdPictureImaging.PdfOCRStart(path + "pdf", true, "", "", "", "", "");
                    for (int x = 1; x <= oGdPictureImaging.TiffGetPageCount(id); x++ )
                    {
                        oGdPictureImaging.TiffSelectPage(id, x);
                        oGdPictureImaging.PdfAddGdPictureImageToPdfOCR(PdfID, id, TesseractDictionary.TesseractDictionaryDutch, this.apppath + "\\OCR\\", "");
                    }
                    oGdPictureImaging.PdfOCRStop(PdfID);


when debugging it seems all pages get added properly, but it hangs again on the PdfOCRStop function.
daninden
 
Posts: 3
Joined: Fri Nov 27, 2009 2:20 pm

Re: PdfOCRCreateFromMultipageTIFF hangs

Postby daninden » Fri Nov 27, 2009 3:52 pm

Nevermind,

it works now.
I changed the gd init functions to be set on the current thread, and removed the SetLicenseNumberOCRTesseract.
Either of those fixed the problem (i guess the latter).
daninden
 
Posts: 3
Joined: Fri Nov 27, 2009 2:20 pm

Re: PdfOCRCreateFromMultipageTIFF hangs

Postby Loïc » Fri Nov 27, 2009 3:55 pm

Hi,

Are you using the latest edition available ?
If yes and if your problem persists, please send me your PDF hanging the app to esupport (at) gdpicture (dot) com.

Kind regards,

Loïc
User avatar
Loïc
Site Admin
 
Posts: 3444
Joined: Tue Oct 17, 2006 11:48 pm
Location: France

Re: PdfOCRCreateFromMultipageTIFF hangs

Postby anvasi » Mon Jan 11, 2010 4:23 pm

hi Loic,

I have the same problem as danindem.

On some images i want to create pdf files with OCR using PdfOCRCreateFromMultipageTIFF but The process stop without notifying any mistake.

I send you my code and the image Where the mistake is produced on esupport (at) gdpicture (dot) com.

Thanks a lot,
anvasi
 
Posts: 30
Joined: Fri Dec 12, 2008 2:16 pm

Re: PdfOCRCreateFromMultipageTIFF hangs

Postby Loïc » Wed Jan 27, 2010 8:39 pm

Hi there,

For information this bug has been identified & fixed in latest release available.

With best regards,

Loïc
User avatar
Loïc
Site Admin
 
Posts: 3444
Joined: Tue Oct 17, 2006 11:48 pm
Location: France


Return to GdPicture Tesseract OCR Engine

Who is online

Users browsing this forum: No registered users and 1 guest

cron