tesseract
3.05.02
|
#include <conv_net_classifier.h>
Public Member Functions | |
ConvNetCharClassifier (CharSet *char_set, TuningParams *params, FeatureBase *feat_extract) | |
virtual | ~ConvNetCharClassifier () |
virtual bool | Train (CharSamp *char_samp, int ClassID) |
virtual bool | SetLearnParam (char *var_name, float val) |
void | SetNet (tesseract::NeuralNet *net) |
virtual CharAltList * | Classify (CharSamp *char_samp) |
virtual int | CharCost (CharSamp *char_samp) |
Public Member Functions inherited from tesseract::CharClassifier | |
CharClassifier (CharSet *char_set, TuningParams *params, FeatureBase *feat_extract) | |
virtual | ~CharClassifier () |
FeatureBase * | FeatureExtractor () |
bool | CaseSensitive () const |
void | SetCaseSensitive (bool case_sensitive) |
Additional Inherited Members | |
Protected Attributes inherited from tesseract::CharClassifier | |
FeatureBase * | feat_extract_ |
CharSet * | char_set_ |
TuningParams * | params_ |
int ** | fold_sets_ |
int * | fold_set_len_ |
int | fold_set_cnt_ |
bool | init_ |
bool | case_sensitive_ |
Definition at line 48 of file conv_net_classifier.h.
tesseract::ConvNetCharClassifier::ConvNetCharClassifier | ( | CharSet * | char_set, |
TuningParams * | params, | ||
FeatureBase * | feat_extract | ||
) |
Definition at line 38 of file conv_net_classifier.cpp.
|
virtual |
Definition at line 47 of file conv_net_classifier.cpp.
|
virtual |
return the cost of being a char
Implements tesseract::CharClassifier.
Definition at line 176 of file conv_net_classifier.cpp.
|
virtual |
classifies a charsamp and returns an alternate list of chars sorted by char costs
Implements tesseract::CharClassifier.
Definition at line 187 of file conv_net_classifier.cpp.
|
virtual |
A secondary function needed for training. Allows the trainer to set the value of any train-time parameter. This function is currently not implemented. TODO(ahmadab): implement end-2-end training
Implements tesseract::CharClassifier.
Definition at line 78 of file conv_net_classifier.cpp.
void tesseract::ConvNetCharClassifier::SetNet | ( | tesseract::NeuralNet * | char_net | ) |
Set an external net (for training purposes)
Definition at line 209 of file conv_net_classifier.cpp.
|
virtual |
The main training function. Given a sample and a class ID the classifier updates its parameters according to its learning algorithm. This function is currently not implemented. TODO(ahmadab): implement end-2-end training
Implements tesseract::CharClassifier.
Definition at line 69 of file conv_net_classifier.cpp.