#include <ctc.h>
Definition at line 30 of file ctc.h.
◆ ComputeCTCTargets()
Definition at line 55 of file ctc.cpp.
58 std::unique_ptr<CTC> ctc(
new CTC(labels, null_char, outputs));
59 if (!ctc->ComputeLabelLimits()) {
65 ctc->ComputeSimpleTargets(&simple_targets);
67 float bias_fraction = ctc->CalculateBiasFraction();
68 simple_targets *= bias_fraction;
69 ctc->outputs_ += simple_targets;
74 ctc->Forward(&log_alphas);
75 ctc->Backward(&log_betas);
77 log_alphas += log_betas;
78 ctc->NormalizeSequence(&log_alphas);
79 ctc->LabelsToClasses(log_alphas, targets);
static void NormalizeProbs(NetworkIO *probs)
◆ NormalizeProbs()
static void tesseract::CTC::NormalizeProbs |
( |
NetworkIO * |
probs | ) |
|
|
inlinestatic |
Definition at line 36 of file ctc.h.
static void NormalizeProbs(NetworkIO *probs)
The documentation for this class was generated from the following files:
- /usr/src/tesseract-ocr.master/src/lstm/ctc.h
- /usr/src/tesseract-ocr.master/src/lstm/ctc.cpp