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 };

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 }

◆ word_blob_quality()

int16_t word_blob_quality ( WERD_RES word,
ROW row 
)
G_DODGY
@ G_DODGY
Definition: docqual.h:33
PAGE_RES_IT::word
WERD_RES * word() const
Definition: pageres.h:756
WERD_RES::reject_map
REJMAP reject_map
Definition: pageres.h:294
G_OK
@ G_OK
Definition: docqual.h:32
PAGE_RES::rejected
bool rejected
Definition: pageres.h:83
G_TERRIBLE
@ G_TERRIBLE
Definition: docqual.h:34
G_NEVER_CRUNCH
@ G_NEVER_CRUNCH
Definition: docqual.h:31
PAGE_RES_IT::restart_page
WERD_RES * restart_page()
Definition: pageres.h:703
PAGE_RES_IT::forward
WERD_RES * forward()
Definition: pageres.h:736
PAGE_RES_IT::page_res
PAGE_RES * page_res
Definition: pageres.h:679
REJMAP::rej_word_doc_rej
void rej_word_doc_rej()
Definition: rejctmap.cpp:424