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

Method SetPageSegMode

deps/tesseract/api/baseapi.cpp:458–462  ·  view source on GitHub ↗

* Set the current page segmentation mode. Defaults to PSM_AUTO. * The mode is stored as an IntParam so it can also be modified by * ReadConfigFile or SetVariable("tessedit_pageseg_mode", mode as string). */

Source from the content-addressed store, hash-verified

456 * ReadConfigFile or SetVariable("tessedit_pageseg_mode", mode as string).
457 */
458void TessBaseAPI::SetPageSegMode(PageSegMode mode) {
459 if (tesseract_ == NULL)
460 tesseract_ = new Tesseract;
461 tesseract_->tessedit_pageseg_mode.set_value(mode);
462}
463
464/** Return the current page segmentation mode. */
465PageSegMode TessBaseAPI::GetPageSegMode() const {

Callers 3

NAN_SETTERFunction · 0.80
FixPageSegModeFunction · 0.80

Calls 1

set_valueMethod · 0.45

Tested by

no test coverage detected