meego / tesseract-ocr

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

TessBaseAPI::GetTextDirection Method do not wok #521

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is report based on 
http://groups.google.com/group/tesseract-ocr/msg/d06528c479c588c6

What steps will reproduce the problem?
1. create rorated image (e.g. phototest_rotate.bmp)
2. try to use GetTextDirection (see example gettextdirectiontest.cpp)
3. result is Offset: 0 Slope: 0.00 

What is the expected output? What do you see instead?
Offset: 328 Slope: 0.11

It looks like problem is in api/baseapi.cpp line:
  if (rows->length() != 1) { 

should be:
  if (rows->length() < 1) { 

Original issue reported on code.google.com by zde...@gmail.com on 27 Jul 2011 at 6:39

Attachments:

GoogleCodeExporter commented 9 years ago
fixed in r596

Original comment by zde...@gmail.com on 27 Jul 2011 at 8:57