tesseract  4.0.0-1-g2a2b
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 407 of file docqual.cpp.

407  {
408  page_res_it.restart_page ();
409  while (page_res_it.word () != nullptr) {
410  page_res_it.word ()->reject_map.rej_word_doc_rej ();
411  page_res_it.forward ();
412  }
413  //whole page is rejected
414  page_res_it.page_res->rejected = true;
415 }
REJMAP reject_map
Definition: pageres.h:287
void rej_word_doc_rej()
Definition: rejctmap.cpp:426
WERD_RES * restart_page()
Definition: pageres.h:698
WERD_RES * word() const
Definition: pageres.h:751
PAGE_RES * page_res
Definition: pageres.h:677
bool rejected
Definition: pageres.h:82
WERD_RES * forward()
Definition: pageres.h:731

◆ word_blob_quality()

int16_t word_blob_quality ( WERD_RES word,
ROW row 
)