tesseract  4.1.1
docqual.h File Reference
#include <cstdint>

Go to the source code of this file.

Enumerations

enum  GARBAGE_LEVEL { G_NEVER_CRUNCH, G_OK, G_DODGY, G_TERRIBLE }
 

Functions

int16_t word_blob_quality (WERD_RES *word, ROW *row)
 
void reject_whole_page (PAGE_RES_IT &page_res_it)
 

Enumeration Type Documentation

◆ GARBAGE_LEVEL

Enumerator
G_NEVER_CRUNCH 
G_OK 
G_DODGY 
G_TERRIBLE 

Definition at line 29 of file docqual.h.

30 {
32  G_OK,
33  G_DODGY,
35 };
Definition: docqual.h:32

Function Documentation

◆ reject_whole_page()

void reject_whole_page ( PAGE_RES_IT page_res_it)

Definition at line 406 of file docqual.cpp.

406  {
407  page_res_it.restart_page ();
408  while (page_res_it.word () != nullptr) {
409  page_res_it.word ()->reject_map.rej_word_doc_rej ();
410  page_res_it.forward ();
411  }
412  //whole page is rejected
413  page_res_it.page_res->rejected = true;
414 }
void rej_word_doc_rej()
Definition: rejctmap.cpp:424
REJMAP reject_map
Definition: pageres.h:294
WERD_RES * restart_page()
Definition: pageres.h:701
bool rejected
Definition: pageres.h:81
WERD_RES * word() const
Definition: pageres.h:754
WERD_RES * forward()
Definition: pageres.h:734
PAGE_RES * page_res
Definition: pageres.h:677

◆ word_blob_quality()

int16_t word_blob_quality ( WERD_RES word,
ROW row 
)