30 std::vector<UnicharRating> *results) {
31 const int old_matcher_level = classify_->matcher_debug_level;
32 const int old_matcher_flags = classify_->matcher_debug_flags;
33 const int old_classify_level = classify_->classify_debug_level;
37 classify_->matcher_debug_level.set_value(2);
38 classify_->matcher_debug_flags.set_value(25);
39 classify_->classify_debug_level.set_value(3);
43 classify_->matcher_debug_level.set_value(old_matcher_level);
44 classify_->matcher_debug_flags.set_value(old_matcher_flags);
45 classify_->classify_debug_level.set_value(old_classify_level);
47 return results->size();
66 int index, std::vector<ScrollView *> &windows) {
67 int shape_id = unichar_id;
75 tprintf(
"No built-in templates for class/shape %d\n", shape_id);
78#ifndef GRAPHICS_DISABLED
#define UnusedClassIdIn(T, c)
void tprintf(const char *format,...)
const ShapeTable * shape_table() const
void ShowBestMatchFor(int shape_id, const INT_FEATURE_STRUCT *features, int num_features)
INT_TEMPLATES_STRUCT * PreTrainedTemplates
int CharNormTrainingSample(bool pruner_only, int keep_this, const TrainingSample &sample, std::vector< UnicharRating > *results)
const ShapeTable * GetShapeTable() const override
const UNICHARSET & GetUnicharset() const override
int UnicharClassifySample(const TrainingSample &sample, Image page_pix, int debug, UNICHAR_ID keep_this, std::vector< UnicharRating > *results) override
int DisplayClassifyAs(const TrainingSample &sample, Image page_pix, int unichar_id, int index, std::vector< ScrollView * > &windows) override
const INT_FEATURE_STRUCT * features() const
uint32_t num_features() const