tesseract  4.00.00dev
docqual.h File Reference
#include "control.h"

Go to the source code of this file.

Enumerations

enum  GARBAGE_LEVEL { G_NEVER_CRUNCH, G_OK, G_DODGY, G_TERRIBLE }
 

Functions

inT16 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 25 of file docqual.h.

26 {
28  G_OK,
29  G_DODGY,
31 };
Definition: docqual.h:28

Function Documentation

◆ reject_whole_page()

void reject_whole_page ( PAGE_RES_IT page_res_it)

Definition at line 411 of file docqual.cpp.

411  {
412  page_res_it.restart_page ();
413  while (page_res_it.word () != NULL) {
414  page_res_it.word ()->reject_map.rej_word_doc_rej ();
415  page_res_it.forward ();
416  }
417  //whole page is rejected
418  page_res_it.page_res->rejected = TRUE;
419 }
#define TRUE
Definition: capi.h:45
WERD_RES * restart_page()
Definition: pageres.h:683
PAGE_RES * page_res
Definition: pageres.h:661
WERD_RES * forward()
Definition: pageres.h:716
BOOL8 rejected
Definition: pageres.h:63
WERD_RES * word() const
Definition: pageres.h:736
void rej_word_doc_rej()
Definition: rejctmap.cpp:494
REJMAP reject_map
Definition: pageres.h:271

◆ word_blob_quality()

inT16 word_blob_quality ( WERD_RES word,
ROW row 
)