#include <hybrid_neural_net_classifier.h>
| tesseract::HybridNeuralNetCharClassifier::~HybridNeuralNetCharClassifier |
( |
| ) |
|
|
virtual |
Definition at line 48 of file hybrid_neural_net_classifier.cpp.
49 for (
int net_idx = 0; net_idx < nets_.size(); net_idx++) {
50 if (nets_[net_idx] != NULL) {
51 delete nets_[net_idx];
56 if (net_input_ != NULL) {
61 if (net_output_ != NULL) {
| int tesseract::HybridNeuralNetCharClassifier::CharCost |
( |
CharSamp * |
char_samp | ) |
|
|
virtual |
Implements tesseract::CharClassifier.
Definition at line 189 of file hybrid_neural_net_classifier.cpp.
191 if (RunNets(char_samp) ==
false) {
198 CharAltList *alt_list =
new CharAltList(
char_set_, class_cnt);
199 if (alt_list == NULL) {
203 for (
int out = 1; out < class_cnt; out++) {
205 alt_list->Insert(out, cost);
static int Prob2Cost(double prob_val)
| bool tesseract::HybridNeuralNetCharClassifier::SetLearnParam |
( |
char * |
var_name, |
|
|
float |
val |
|
) |
| |
|
virtual |
| bool tesseract::HybridNeuralNetCharClassifier::Train |
( |
CharSamp * |
char_samp, |
|
|
int |
ClassID |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files: