This commit is contained in:
Egor Pugin 2021-03-24 14:36:45 +03:00
parent 7c975a0eee
commit 067c971774

View File

@ -1369,13 +1369,12 @@ std::tuple<int,int,int,int> TessBaseAPI::GetTableBoundingBox(unsigned i)
}
const int height = tesseract_->ImageHeight();
return std::make_tuple<int,int,int,int>(
t[i].box.left(), height - t[i].box.top(),
t[i].box.right(), height - t[i].box.bottom());
}
std::vector<std::tuple<int,int,int,int>> TessBaseAPI::GetTableRows(unsigned i)
{
const auto &t = constUniqueInstance<std::vector<TessTable>>();