Home
last modified time | relevance | path

Searched refs:osd_tess (Results 1 – 5 of 5) sorted by relevance

/dports/graphics/tesseract/tesseract-5.0.0/src/ccmain/
H A Dpagesegmain.cpp101 int Tesseract::SegmentPage(const char *input_file, BLOCK_LIST *blocks, Tesseract *osd_tess, in SegmentPage() argument
141 enable_noise_removal ? &diacritic_blobs : nullptr, osd_tess, osr); in SegmentPage()
210 pageseg_mode, blocks, osd_tess, osr, &temp_blocks, &photomask_pix, in AutoPageSeg()
355 if (PSM_OSD_ENABLED(pageseg_mode) && osd_tess != nullptr && osr != nullptr) { in SetupPageSegAndDetectOrientation()
357 if (osd_tess != this) { in SetupPageSegAndDetectOrientation()
360 AddAllScriptsConverted(unicharset, osd_tess->unicharset, &osd_scripts); in SetupPageSegAndDetectOrientation()
362 AddAllScriptsConverted(lang->unicharset, osd_tess->unicharset, &osd_scripts); in SetupPageSegAndDetectOrientation()
365 os_detect_blobs(&osd_scripts, &osd_blobs, osr, osd_tess); in SetupPageSegAndDetectOrientation()
380 bool cjk = best_script_id == osd_tess->unicharset.han_sid() || in SetupPageSegAndDetectOrientation()
381 best_script_id == osd_tess->unicharset.hiragana_sid() || in SetupPageSegAndDetectOrientation()
[all …]
H A Dtesseractclass.h327 void PrepareForTessOCR(BLOCK_LIST *block_list, Tesseract *osd_tess, OSResults *osr);
329 int SegmentPage(const char *input_file, BLOCK_LIST *blocks, Tesseract *osd_tess, OSResults *osr);
332 BLOBNBOX_LIST *diacritic_blobs, Tesseract *osd_tess, OSResults *osr);
334 Tesseract *osd_tess, OSResults *osr,
H A Dtesseractclass.cpp581 void Tesseract::PrepareForTessOCR(BLOCK_LIST *block_list, Tesseract *osd_tess, OSResults *osr) { in PrepareForTessOCR() argument
/dports/graphics/tesseract/tesseract-5.0.0/unittest/
H A Dtextlineprojection_test.cc70 auto osd_tess = std::make_unique<Tesseract>(); in SetupProjection() local
72 EXPECT_EQ(osd_tess->init_tesseract(TESSDATA_DIR, "", "osd", tesseract::OEM_TESSERACT_ONLY, in SetupProjection()
81 osd_tess->set_source_resolution(api_.tesseract()->source_resolution()); in SetupProjection()
96 … tesseract_->SetupPageSegAndDetectOrientation(tesseract::PSM_AUTO_OSD, &src_blocks, osd_tess.get(), in SetupProjection()
/dports/graphics/tesseract/tesseract-5.0.0/src/api/
H A Dbaseapi.cpp2124 Tesseract *osd_tess = osd_tesseract_; in FindLines() local
2127 if (PSM_OSD_ENABLED(tesseract_->tessedit_pageseg_mode) && osd_tess == nullptr) { in FindLines()
2129 osd_tess = tesseract_; in FindLines()
2141 osd_tess = osd_tesseract_; in FindLines()
2154 if (tesseract_->SegmentPage(input_file_.c_str(), block_list_, osd_tess, &osr) < 0) { in FindLines()
2160 tesseract_->PrepareForTessOCR(block_list_, osd_tess, &osr); in FindLines()