#include <conv_net_classifier.h>
Definition at line 48 of file conv_net_classifier.h.
Definition at line 38 of file conv_net_classifier.cpp.
CharClassifier(CharSet *char_set, TuningParams *params, FeatureBase *feat_extract)
tesseract::ConvNetCharClassifier::~ConvNetCharClassifier |
( |
| ) |
|
|
virtual |
int tesseract::ConvNetCharClassifier::CharCost |
( |
CharSamp * |
char_samp | ) |
|
|
virtual |
Implements tesseract::CharClassifier.
Definition at line 186 of file conv_net_classifier.cpp.
188 if (RunNets(char_samp) ==
false) {
195 CharAltList *alt_list =
new CharAltList(
char_set_, class_cnt);
196 if (alt_list ==
NULL) {
197 fprintf(stderr,
"Cube WARNING (ConvNetCharClassifier::Classify): " 198 "returning emtpy CharAltList\n");
202 for (
int out = 1; out < class_cnt; out++) {
204 alt_list->Insert(out, cost);
static int Prob2Cost(double prob_val)
bool tesseract::ConvNetCharClassifier::SetLearnParam |
( |
char * |
var_name, |
|
|
float |
val |
|
) |
| |
|
virtual |
bool tesseract::ConvNetCharClassifier::Train |
( |
CharSamp * |
char_samp, |
|
|
int |
ClassID |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files: