23 #ifndef TESSERACT_CLASSIFY_SHAPECLASSIFIER_H_ 24 #define TESSERACT_CLASSIFY_SHAPECLASSIFIER_H_ 35 template <
typename T>
class PointerVector;
39 class TrainingSampleSet;
68 int debug, UNICHAR_ID keep_this,
73 int debug, UNICHAR_ID keep_this,
97 UNICHAR_ID unichar_id);
106 UNICHAR_ID unichar_id,
int index,
124 #endif // TESSERACT_CLASSIFY_SHAPECLASSIFIER_H_ void FilterDuplicateUnichars(GenericVector< ShapeRating > *results) const
Definition: shapeclassifier.cpp:203
virtual const ShapeTable * GetShapeTable() const =0
virtual int UnicharClassifySample(const TrainingSample &sample, Pix *page_pix, int debug, UNICHAR_ID keep_this, GenericVector< UnicharRating > *results)
Definition: shapeclassifier.cpp:40
Definition: unicharset.h:146
virtual int DisplayClassifyAs(const TrainingSample &sample, Pix *page_pix, UNICHAR_ID unichar_id, int index, PointerVector< ScrollView > *windows)
Definition: shapeclassifier.cpp:164
virtual void PrintResults(const char *context, const GenericVector< ShapeRating > &results) const
Definition: shapeclassifier.cpp:188
Definition: baseapi.cpp:94
virtual ~ShapeClassifier()=default
virtual int ClassifySample(const TrainingSample &sample, Pix *page_pix, int debug, UNICHAR_ID keep_this, GenericVector< ShapeRating > *results)
Definition: shapeclassifier.cpp:59
virtual void UnicharPrintResults(const char *context, const GenericVector< UnicharRating > &results) const
Definition: shapeclassifier.cpp:173
Definition: shapetable.h:93
virtual const UNICHARSET & GetUnicharset() const
Definition: shapeclassifier.cpp:88
virtual int BestShapeForUnichar(const TrainingSample &sample, Pix *page_pix, UNICHAR_ID unichar_id, ShapeRating *result)
Definition: shapeclassifier.cpp:70
Definition: shapetable.h:262
Definition: shapeclassifier.h:43
virtual void DebugDisplay(const TrainingSample &sample, Pix *page_pix, UNICHAR_ID unichar_id)
Definition: shapeclassifier.cpp:97
Definition: genericvector.h:457
Definition: trainingsample.h:53