Hi, The image works fine for me (although it takes about 25 secs to compute - 2 GHz AMD 64-bit machine with 2GB RAM). How long does it take for you? Is the memory consumed by the program growing with time (it is a good sign)? Does it run out of memory?
The search function tries to find the highest quality (longest) text-line in the page. The skew angle of that line is used as the skew estimate of the page. The reason for this being slow for this particular image is the presence of half-tone style noise. To better handle this type of images, you need text/image segmentation. Cheers, Faisal 2008/9/11 Giorgos Louloudis <[EMAIL PROTECTED]> > I only created a c++ console application making use of the > main-ocr-deskew-rast.I managed to create a project in order ot be able to > deskew png images.in the folder there exist two png images test-bin.png > and test-gray.png. for the first one everything works fine.For the second > one it seems that the program stays inside the for loop of the function i > described you.I discovered that after thorough debugging! > Are you sure that this search functions works well?and what is the meaning > of that function? > Thanks for your time Thomas! > I think we have met at ICDAR2007 in Curutiba > Giorgos Louloudis > > > ------------------------------ > > Date: Thu, 11 Sep 2008 10:49:47 -0700 > From: [EMAIL PROTECTED] > To: [email protected] > Subject: Re: problem in search function of ocr-ctextline-rast.cc > > > > > Please submit an issue to the issue tracker, with the input image and a > small code snippet (preferably in Lua, but C++ will do). > > Cheers, > Thomas > > On Thu, Sep 11, 2008 at 05:49, Italian Dream <[EMAIL PROTECTED]>wrote: > > > Hello everyone!This is my first post!Well i am trying to create a > console application using c++ builder making use of the deskew folder > files.I created the project,corrected some things in order to be able > to build it.The problem is that although i managed to create an output > image for the binary example, this is not the case for the grayscale > one.As i started debugging your code i noticed that the for loop that > starts at line 217 (function CTextlineRASTBasic::search() ) never > stops!!!! I am not able to figure out what you try to search in order > to do anything inside this function.Hope that you notice anything and > inform me please!! > Thank you for your time! > Giorgos Louloudis > University of Athens > Greece > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ocropus" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/ocropus?hl=en -~----------~----~----~----~------~----~------~--~---
