MCPcopy Create free account
hub / github.com/creatale/node-dv / GetBlockTextOrientation

Function GetBlockTextOrientation

deps/tesseract/api/baseapi.cpp:1302–1310  ·  view source on GitHub ↗

* Gets the block orientation at the current iterator position. */

Source from the content-addressed store, hash-verified

1300 * Gets the block orientation at the current iterator position.
1301 */
1302static tesseract::Orientation GetBlockTextOrientation(const PageIterator *it) {
1303 tesseract::Orientation orientation;
1304 tesseract::WritingDirection writing_direction;
1305 tesseract::TextlineOrder textline_order;
1306 float deskew_angle;
1307 it->Orientation(&orientation, &writing_direction, &textline_order,
1308 &deskew_angle);
1309 return orientation;
1310}
1311
1312/**
1313 * Fits a line to the baseline at the given level, and appends its coefficients

Callers 1

AddBaselineCoordsTohOCRFunction · 0.85

Calls 1

OrientationMethod · 0.80

Tested by

no test coverage detected