tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::TessClassifier Class Reference

#include <tessclassifier.h>

Inheritance diagram for tesseract::TessClassifier:
Collaboration diagram for tesseract::TessClassifier:

Public Member Functions

 TessClassifier (bool pruner_only, tesseract::Classify *classify)
 
virtual ~TessClassifier ()=default
 
virtual int UnicharClassifySample (const TrainingSample &sample, Pix *page_pix, int debug, UNICHAR_ID keep_this, GenericVector< UnicharRating > *results)
 
virtual const ShapeTableGetShapeTable () const
 
virtual const UNICHARSETGetUnicharset () const
 
virtual int DisplayClassifyAs (const TrainingSample &sample, Pix *page_pix, int unichar_id, int index, PointerVector< ScrollView > *windows)
 
- Public Member Functions inherited from tesseract::ShapeClassifier
virtual ~ShapeClassifier ()=default
 
virtual int BestShapeForUnichar (const TrainingSample &sample, Pix *page_pix, UNICHAR_ID unichar_id, ShapeRating *result)
 
virtual void DebugDisplay (const TrainingSample &sample, Pix *page_pix, UNICHAR_ID unichar_id)
 
virtual void UnicharPrintResults (const char *context, const GenericVector< UnicharRating > &results) const
 
virtual void PrintResults (const char *context, const GenericVector< ShapeRating > &results) const
 

Private Attributes

bool pruner_only_
 
tesseract::Classifyclassify_
 

Additional Inherited Members

- Protected Member Functions inherited from tesseract::ShapeClassifier
virtual int ClassifySample (const TrainingSample &sample, Pix *page_pix, int debug, UNICHAR_ID keep_this, GenericVector< ShapeRating > *results)
 
void FilterDuplicateUnichars (GenericVector< ShapeRating > *results) const
 

Constructor & Destructor Documentation

◆ TessClassifier()

tesseract::TessClassifier::TessClassifier ( bool  pruner_only,
tesseract::Classify classify 
)
inline

◆ ~TessClassifier()

virtual tesseract::TessClassifier::~TessClassifier ( )
virtualdefault

Member Function Documentation

◆ DisplayClassifyAs()

int tesseract::TessClassifier::DisplayClassifyAs ( const TrainingSample sample,
Pix *  page_pix,
int  unichar_id,
int  index,
PointerVector< ScrollView > *  windows 
)
virtual

Reimplemented from tesseract::ShapeClassifier.

◆ GetShapeTable()

const ShapeTable * tesseract::TessClassifier::GetShapeTable ( ) const
virtual

◆ GetUnicharset()

const UNICHARSET & tesseract::TessClassifier::GetUnicharset ( ) const
virtual

Reimplemented from tesseract::ShapeClassifier.

◆ UnicharClassifySample()

int tesseract::TessClassifier::UnicharClassifySample ( const TrainingSample sample,
Pix *  page_pix,
int  debug,
UNICHAR_ID  keep_this,
GenericVector< UnicharRating > *  results 
)
virtual

Reimplemented from tesseract::ShapeClassifier.

Member Data Documentation

◆ classify_

tesseract::Classify* tesseract::TessClassifier::classify_
private

◆ pruner_only_

bool tesseract::TessClassifier::pruner_only_
private

The documentation for this class was generated from the following files: