tesseract  4.0.0-1-g2a2b
tesseract::DocQualCallbacks Struct Reference

Public Member Functions

 DocQualCallbacks (WERD_RES *word0)
 
void CountMatchingBlobs (int index)
 
void CountAcceptedBlobs (int index)
 
void AcceptIfGoodQuality (int index)
 

Public Attributes

WERD_RESword
 
int16_t match_count
 
int16_t accepted_match_count
 

Detailed Description

Definition at line 31 of file docqual.cpp.

Constructor & Destructor Documentation

◆ DocQualCallbacks()

tesseract::DocQualCallbacks::DocQualCallbacks ( WERD_RES word0)
inlineexplicit

Definition at line 32 of file docqual.cpp.

Member Function Documentation

◆ AcceptIfGoodQuality()

void tesseract::DocQualCallbacks::AcceptIfGoodQuality ( int  index)
inline

Definition at line 45 of file docqual.cpp.

45  {
46  if (word->reject_map[index].accept_if_good_quality())
47  word->reject_map[index].setrej_quality_accept();
48  }
REJMAP reject_map
Definition: pageres.h:287

◆ CountAcceptedBlobs()

void tesseract::DocQualCallbacks::CountAcceptedBlobs ( int  index)
inline

Definition at line 39 of file docqual.cpp.

39  {
40  if (word->reject_map[index].accepted())
42  ++match_count;
43  }
REJMAP reject_map
Definition: pageres.h:287

◆ CountMatchingBlobs()

void tesseract::DocQualCallbacks::CountMatchingBlobs ( int  index)
inline

Definition at line 35 of file docqual.cpp.

35  {
36  ++match_count;
37  }

Member Data Documentation

◆ accepted_match_count

int16_t tesseract::DocQualCallbacks::accepted_match_count

Definition at line 52 of file docqual.cpp.

◆ match_count

int16_t tesseract::DocQualCallbacks::match_count

Definition at line 51 of file docqual.cpp.

◆ word

WERD_RES* tesseract::DocQualCallbacks::word

Definition at line 50 of file docqual.cpp.


The documentation for this struct was generated from the following file: