Tesseract  3.02
tesseract::TessClassifier Class Reference

#include <tessclassifier.h>

Inheritance diagram for tesseract::TessClassifier:
tesseract::ShapeClassifier

List of all members.

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 ShapeTableGetShapeTable () const

Detailed Description

Definition at line 36 of file tessclassifier.h.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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();
}

The documentation for this class was generated from the following files: