50 return results->
size();
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)
virtual int UnicharClassifySample(const TrainingSample &sample, Pix *page_pix, int debug, UNICHAR_ID keep_this, GenericVector< UnicharRating > *results)
INT_TEMPLATES PreTrainedTemplates
virtual int DisplayClassifyAs(const TrainingSample &sample, Pix *page_pix, int unichar_id, int index, PointerVector< ScrollView > *windows)
DLLSYM void tprintf(const char *format,...)
const ShapeTable * shape_table() const
int CharNormTrainingSample(bool pruner_only, int keep_this, const TrainingSample &sample, GenericVector< UnicharRating > *results)
virtual const ShapeTable * GetShapeTable() const
virtual const UNICHARSET & GetUnicharset() const