On Tue, Jun 14, 2011 at 7:44 AM, Alex Franchuk <[email protected]>wrote:
> You may forward it to the forum. That was compiled under linux, but the > same is compilable under windows with the proper tools. Others on the forums > would be able to help you there. > Sincerely, > Alex > > > On Mon, Jun 13, 2011 at 12:45 AM, Sriranga(78yrsold) < > [email protected]> wrote: > >> Alex, >> thanks for the reply. Since I am not programmer nor developer, it is >> difficult to understand the codes and don't know how to generated exe file. >> If the exe file >> for the winXP, is available it will be easy for me to run under your >> guidance.. >> Anyway it would be better to post in forum for benefit of other users. If >> you permit me I will post the same to forum OR you can post the same as >> deemed fit. >> With Warmest Regards, >> -sriranga(78yrs) >> >> >> On Mon, Jun 13, 2011 at 9:13 AM, Alex Franchuk >> <[email protected]>wrote: >> >>> Attached is the code used to generate the executable, as well as the file >>> used with slanted text. It is compiled with the tesseract-3.00 library. >>> >>> The compile command for the first (non-working) one is: >>> g++ -o gettextdirection ./gettextdirectiontest.cpp -I./includes/ -L./libs >>> -ltesseract_api -ltesseract_textord -ltesseract_main -ltesseract_wordrec >>> -ltesseract_classify -ltesseract_dict -ltesseract_viewer -ltesseract_ccutil >>> -ltesseract_ccstruct -ltesseract_cutil -ltesseract_image -ltiff -lpthread >>> >>> and its output upon being run: >>> > ./gettextdirection ./phototest_rotate.bmp >>> Offset: 0 Slope: 0.00 >>> >>> and the command for the working executable: >>> g++ -o gettextdirection ./gettextdirectiontest.cpp -I./includes/ -L./libs >>> -ltesseract_api_new -ltesseract_textord -ltesseract_main -ltesseract_wordrec >>> -ltesseract_classify -ltesseract_dict -ltesseract_viewer -ltesseract_ccutil >>> -ltesseract_ccstruct -ltesseract_cutil -ltesseract_image -ltiff -lpthread >>> >>> and its output: >>> > ./gettextdirection ./phototest_rotate.bmp >>> Offset: 328 Slope: 0.11 >>> >>> The tesseract_api_new library (in the second compilation) was simply the >>> tesseract_api library compiled with the change to < 1. >>> >>> As you can see, the second version with the change to <1 in the >>> baseapi.cpp code resulted in the correct rotation, where the slope was .11 >>> rad or approximately 6 degrees, which is exactly as much as I rotated the >>> image. >>> >>> I hope this is a good proof of concept! >>> Sincerely, >>> Alex >>> >>> >>> >>> On Thu, Jun 9, 2011 at 10:36 PM, Sriranga(78yrsold) < >>> [email protected]> wrote: >>> >>>> Dear Alex, >>>> Will you kindly forward sample English text with commandline using both >>>> method of !=1 and <=1 to understand clearly. I want to test your method for >>>> Kannada lang (utf-8)? >>>> With regards, >>>> -sriranga(78yrs) >>>> - >>>> >>>> On Fri, Jun 10, 2011 at 1:17 AM, Alex Franchuk <[email protected] >>>> > wrote: >>>> >>>>> The GetTextDirection method does not work correctly. On a standard >>>>> page, it fails and returns false. However, if the line: >>>>> if (rows->length() != 1) { >>>>> return false; >>>>> } >>>>> >>>>> to: >>>>> if (rows->length() < 1) { >>>>> return false; >>>>> } >>>>> in baseapi.cpp, then the method works as expected. Of course, this >>>>> method has no adequate documentation in comparison to the other >>>>> methods of the TessBaseAPI class, so perhaps the != 1 did stand for >>>>> something. However, the correct result is returned with the change to >>>>> < 1, and it makes sense... >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "tesseract-ocr" 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/tesseract-ocr?hl=en >>>>> >>>> >>>> >>> >> > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" 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/tesseract-ocr?hl=en

