Tesseract
3.02
|
#include <tessclassifier.h>
Public Member Functions | |
TessClassifier (bool pruner_only, tesseract::Classify *classify) | |
virtual | ~TessClassifier () |
virtual int | ClassifySample (const TrainingSample &sample, Pix *page_pix, int debug, int keep_this, GenericVector< ShapeRating > *results) |
virtual const ShapeTable * | GetShapeTable () const |
Definition at line 36 of file tessclassifier.h.
tesseract::TessClassifier::TessClassifier | ( | bool | pruner_only, |
tesseract::Classify * | classify | ||
) | [inline] |
Definition at line 38 of file tessclassifier.h.
: pruner_only_(pruner_only), classify_(classify) {}
virtual tesseract::TessClassifier::~TessClassifier | ( | ) | [inline, virtual] |
Definition at line 40 of file tessclassifier.h.
{}
int tesseract::TessClassifier::ClassifySample | ( | const TrainingSample & | sample, |
Pix * | page_pix, | ||
int | debug, | ||
int | keep_this, | ||
GenericVector< ShapeRating > * | results | ||
) | [virtual] |
Implements tesseract::ShapeClassifier.
Definition at line 31 of file tessclassifier.cpp.
{ if (debug) { classify_->matcher_debug_level.set_value(debug ? 2 : 0); classify_->matcher_debug_flags.set_value(debug ? 25 : 0); classify_->classify_debug_level.set_value(debug ? 3 : 0); } else { classify_->classify_debug_level.set_value(debug ? 2 : 0); } classify_->CharNormTrainingSample(pruner_only_, sample, results); return results->size(); }
const ShapeTable * tesseract::TessClassifier::GetShapeTable | ( | ) | const [virtual] |
Implements tesseract::ShapeClassifier.
Definition at line 46 of file tessclassifier.cpp.
{ return classify_->shape_table(); }