jacklicn / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

Is it a bug in baseapi.cpp? #505

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I compiled tesseract-3.00 and called api by following steps:
   PIX pix=pixRead(bmp_image_file);
   tesseract_api.Init();
   tesseract_api.SetImage(pix);
   Boxa boxa=tesseract_api.GetTextlines(NULL,NULL);
it shows that when the bmp image file is large, the width or length of box in 
boxa is out of range of the whole bmp image.
So I review some source code of tesseract-3.00 and find the function 
TessBaseAPI::GetTextlines() has defect at line 452 in baseapi.cpp file.The 
problem disappears if following code inserted between line 452 and 453:
    line_box.rotate(block->re_rotation());
Is it a bug?

Original issue reported on code.google.com by yigu...@gmail.com on 30 Jun 2011 at 5:44

GoogleCodeExporter commented 9 years ago
Can you please post somewhere example bmp file for this error?

Original comment by zde...@gmail.com on 2 Jul 2011 at 8:30

GoogleCodeExporter commented 9 years ago
BTW: can you try/test 3.01 code (in svn)

Original comment by zde...@gmail.com on 6 Jul 2011 at 2:51

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I am afraid i can't provide this image because it is not in my notebook now. 
But latter i will make up. I will also give some result as soon as tests on 
3.01 is applied. :-)

Original comment by yigu...@gmail.com on 7 Jul 2011 at 4:45

GoogleCodeExporter commented 9 years ago
Any result from 3.01? Can I close issue?

Original comment by zde...@gmail.com on 10 Feb 2012 at 9:39

GoogleCodeExporter commented 9 years ago
I am closing this issue because I can reproduce problem (in current code). If 
problem exists (in current svn code), please provide example image.

Original comment by zde...@gmail.com on 19 Feb 2012 at 3:27