tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::ShapeClassifier Class Referenceabstract

#include <shapeclassifier.h>

Inheritance diagram for tesseract::ShapeClassifier:

Public Member Functions

virtual ~ShapeClassifier ()=default
 
virtual int UnicharClassifySample (const TrainingSample &sample, Pix *page_pix, int debug, UNICHAR_ID keep_this, GenericVector< UnicharRating > *results)
 
virtual int BestShapeForUnichar (const TrainingSample &sample, Pix *page_pix, UNICHAR_ID unichar_id, ShapeRating *result)
 
virtual const ShapeTableGetShapeTable () const =0
 
virtual const UNICHARSETGetUnicharset () const
 
virtual void DebugDisplay (const TrainingSample &sample, Pix *page_pix, UNICHAR_ID unichar_id)
 
virtual int DisplayClassifyAs (const TrainingSample &sample, Pix *page_pix, UNICHAR_ID unichar_id, int index, PointerVector< ScrollView > *windows)
 
virtual void UnicharPrintResults (const char *context, const GenericVector< UnicharRating > &results) const
 
virtual void PrintResults (const char *context, const GenericVector< ShapeRating > &results) const
 

Protected Member Functions

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

◆ ~ShapeClassifier()

virtual tesseract::ShapeClassifier::~ShapeClassifier ( )
virtualdefault

Member Function Documentation

◆ BestShapeForUnichar()

int tesseract::ShapeClassifier::BestShapeForUnichar ( const TrainingSample sample,
Pix *  page_pix,
UNICHAR_ID  unichar_id,
ShapeRating result 
)
virtual

◆ ClassifySample()

int tesseract::ShapeClassifier::ClassifySample ( const TrainingSample sample,
Pix *  page_pix,
int  debug,
UNICHAR_ID  keep_this,
GenericVector< ShapeRating > *  results 
)
protectedvirtual

◆ DebugDisplay()

void tesseract::ShapeClassifier::DebugDisplay ( const TrainingSample sample,
Pix *  page_pix,
UNICHAR_ID  unichar_id 
)
virtual

◆ DisplayClassifyAs()

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

Reimplemented in tesseract::TessClassifier.

◆ FilterDuplicateUnichars()

void tesseract::ShapeClassifier::FilterDuplicateUnichars ( GenericVector< ShapeRating > *  results) const
protected

◆ GetShapeTable()

virtual const ShapeTable* tesseract::ShapeClassifier::GetShapeTable ( ) const
pure virtual

Implemented in tesseract::TessClassifier.

◆ GetUnicharset()

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

Reimplemented in tesseract::TessClassifier.

◆ PrintResults()

void tesseract::ShapeClassifier::PrintResults ( const char *  context,
const GenericVector< ShapeRating > &  results 
) const
virtual

◆ UnicharClassifySample()

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

Reimplemented in tesseract::TessClassifier.

◆ UnicharPrintResults()

void tesseract::ShapeClassifier::UnicharPrintResults ( const char *  context,
const GenericVector< UnicharRating > &  results 
) const
virtual

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