tesseract
4.00.00dev
|
#include <recodebeam.h>
Public Member Functions | |
RecodeBeamSearch (const UnicharCompress &recoder, int null_char, bool simple_text, Dict *dict) | |
void | Decode (const NetworkIO &output, double dict_ratio, double cert_offset, double worst_dict_cert, const UNICHARSET *charset) |
void | Decode (const GENERIC_2D_ARRAY< float > &output, double dict_ratio, double cert_offset, double worst_dict_cert, const UNICHARSET *charset) |
void | ExtractBestPathAsLabels (GenericVector< int > *labels, GenericVector< int > *xcoords) const |
void | ExtractBestPathAsUnicharIds (bool debug, const UNICHARSET *unicharset, GenericVector< int > *unichar_ids, GenericVector< float > *certs, GenericVector< float > *ratings, GenericVector< int > *xcoords) const |
void | ExtractBestPathAsWords (const TBOX &line_box, float scale_factor, bool debug, const UNICHARSET *unicharset, PointerVector< WERD_RES > *words) |
void | DebugBeams (const UNICHARSET &unicharset) const |
Static Public Member Functions | |
static int | LengthFromBeamsIndex (int index) |
static NodeContinuation | ContinuationFromBeamsIndex (int index) |
static bool | IsDawgFromBeamsIndex (int index) |
static int | BeamIndex (bool is_dawg, NodeContinuation cont, int length) |
Static Public Attributes | |
static const float | kMinCertainty = -20.0f |
static const int | kNumLengths = RecodedCharID::kMaxCodeLen + 1 |
static const int | kNumBeams = 2 * NC_COUNT * kNumLengths |
Definition at line 176 of file recodebeam.h.
tesseract::RecodeBeamSearch::RecodeBeamSearch | ( | const UnicharCompress & | recoder, |
int | null_char, | ||
bool | simple_text, | ||
Dict * | dict | ||
) |
Definition at line 62 of file recodebeam.cpp.
|
inlinestatic |
Definition at line 228 of file recodebeam.h.
|
inlinestatic |
Definition at line 221 of file recodebeam.h.
void tesseract::RecodeBeamSearch::DebugBeams | ( | const UNICHARSET & | unicharset | ) | const |
Definition at line 210 of file recodebeam.cpp.
void tesseract::RecodeBeamSearch::Decode | ( | const NetworkIO & | output, |
double | dict_ratio, | ||
double | cert_offset, | ||
double | worst_dict_cert, | ||
const UNICHARSET * | charset | ||
) |
Definition at line 76 of file recodebeam.cpp.
void tesseract::RecodeBeamSearch::Decode | ( | const GENERIC_2D_ARRAY< float > & | output, |
double | dict_ratio, | ||
double | cert_offset, | ||
double | worst_dict_cert, | ||
const UNICHARSET * | charset | ||
) |
Definition at line 87 of file recodebeam.cpp.
void tesseract::RecodeBeamSearch::ExtractBestPathAsLabels | ( | GenericVector< int > * | labels, |
GenericVector< int > * | xcoords | ||
) | const |
Definition at line 100 of file recodebeam.cpp.
void tesseract::RecodeBeamSearch::ExtractBestPathAsUnicharIds | ( | bool | debug, |
const UNICHARSET * | unicharset, | ||
GenericVector< int > * | unichar_ids, | ||
GenericVector< float > * | certs, | ||
GenericVector< float > * | ratings, | ||
GenericVector< int > * | xcoords | ||
) | const |
Definition at line 123 of file recodebeam.cpp.
void tesseract::RecodeBeamSearch::ExtractBestPathAsWords | ( | const TBOX & | line_box, |
float | scale_factor, | ||
bool | debug, | ||
const UNICHARSET * | unicharset, | ||
PointerVector< WERD_RES > * | words | ||
) |
Definition at line 138 of file recodebeam.cpp.
|
inlinestatic |
Definition at line 224 of file recodebeam.h.
Definition at line 220 of file recodebeam.h.
|
static |
Definition at line 213 of file recodebeam.h.
|
static |
Definition at line 218 of file recodebeam.h.
|
static |
Definition at line 215 of file recodebeam.h.