tesseract  4.0.0-1-g2a2b
docqual.cpp File Reference
#include <cctype>
#include "docqual.h"
#include "reject.h"
#include "tesscallback.h"
#include "tessvars.h"
#include "globals.h"
#include "tesseractclass.h"

Go to the source code of this file.

Classes

struct  tesseract::DocQualCallbacks
 

Namespaces

 tesseract
 

Functions

void reject_whole_page (PAGE_RES_IT &page_res_it)
 

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