mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-21 08:43:03 +08:00
Misc.
This commit is contained in:
parent
7c975a0eee
commit
067c971774
@ -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>>();
|
||||
|
Loading…
Reference in New Issue
Block a user