tesseract  5.0.0-alpha-619-ge9db
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)
 
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 27 of file docqual.h.

29 {
31  G_OK,
32  G_DODGY,

Function Documentation

◆ reject_whole_page()

void reject_whole_page ( PAGE_RES_IT page_res_it)

Definition at line 385 of file docqual.cpp.

387  {
388  page_res_it.restart_page ();
389  while (page_res_it.word () != nullptr) {
390  page_res_it.word ()->reject_map.rej_word_doc_rej ();
391  page_res_it.forward ();
392  }
393  //whole page is rejected

◆ word_blob_quality()

int16_t word_blob_quality ( WERD_RES word)
G_NEVER_CRUNCH
Definition: docqual.h:29
PAGE_RES_IT::forward
WERD_RES * forward()
Definition: pageres.h:728
G_TERRIBLE
Definition: docqual.h:32
PAGE_RES_IT::restart_page
WERD_RES * restart_page()
Definition: pageres.h:695
WERD_RES::reject_map
REJMAP reject_map
Definition: pageres.h:288
PAGE_RES_IT::word
WERD_RES * word() const
Definition: pageres.h:748
REJMAP::rej_word_doc_rej
void rej_word_doc_rej()
Definition: rejctmap.cpp:423
G_OK
Definition: docqual.h:30
G_DODGY
Definition: docqual.h:31