#include <tessclassifier.h>
|
| 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 ShapeTable * | GetShapeTable () const |
|
virtual const UNICHARSET & | GetUnicharset () const |
|
virtual int | DisplayClassifyAs (const TrainingSample &sample, Pix *page_pix, int unichar_id, int index, PointerVector< ScrollView > *windows) |
|
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 |
|
Definition at line 36 of file tessclassifier.h.
◆ TessClassifier()
Definition at line 38 of file tessclassifier.h.
39 : pruner_only_(pruner_only), classify_(classify) {}
◆ ~TessClassifier()
virtual tesseract::TessClassifier::~TessClassifier |
( |
| ) |
|
|
virtualdefault |
◆ DisplayClassifyAs()
Reimplemented from tesseract::ShapeClassifier.
Definition at line 68 of file tessclassifier.cpp.
71 int shape_id = unichar_id;
75 if (shape_id < 0)
return index;
77 tprintf(
"No built-in templates for class/shape %d\n", shape_id);
#define UnusedClassIdIn(T, c)
void ShowBestMatchFor(int shape_id, const INT_FEATURE_STRUCT *features, int num_features)
INT_TEMPLATES PreTrainedTemplates
DLLSYM void tprintf(const char *format,...)
◆ GetShapeTable()
const ShapeTable * tesseract::TessClassifier::GetShapeTable |
( |
| ) |
const |
|
virtual |
◆ GetUnicharset()
const UNICHARSET & tesseract::TessClassifier::GetUnicharset |
( |
| ) |
const |
|
virtual |
◆ UnicharClassifySample()
Reimplemented from tesseract::ShapeClassifier.
Definition at line 31 of file tessclassifier.cpp.
50 return results->
size();
int CharNormTrainingSample(bool pruner_only, int keep_this, const TrainingSample &sample, GenericVector< UnicharRating > *results)
The documentation for this class was generated from the following files: