23 #ifndef TESSERACT_CLASSIFY_SHAPECLASSIFIER_H_ 24 #define TESSERACT_CLASSIFY_SHAPECLASSIFIER_H_ 35 template <
typename T>
class PointerVector;
39 class TrainingSampleSet;
124 #endif // TESSERACT_CLASSIFY_SHAPECLASSIFIER_H_ void FilterDuplicateUnichars(GenericVector< ShapeRating > *results) const
virtual ~ShapeClassifier()=default
virtual const UNICHARSET & GetUnicharset() const
virtual void DebugDisplay(const TrainingSample &sample, Pix *page_pix, UNICHAR_ID unichar_id)
virtual int ClassifySample(const TrainingSample &sample, Pix *page_pix, int debug, UNICHAR_ID keep_this, GenericVector< ShapeRating > *results)
virtual const ShapeTable * GetShapeTable() const =0
virtual int DisplayClassifyAs(const TrainingSample &sample, Pix *page_pix, UNICHAR_ID unichar_id, int index, PointerVector< ScrollView > *windows)
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 void UnicharPrintResults(const char *context, const GenericVector< UnicharRating > &results) const
virtual void PrintResults(const char *context, const GenericVector< ShapeRating > &results) const