#include "ratngs.h"
#include <algorithm>
#include <string>
#include "blobs.h"
#include "callcpp.h"
#include <tesseract/genericvector.h>
#include "matrix.h"
#include "normalis.h"
#include "unicharset.h"
Go to the source code of this file.
◆ EqualIgnoringCaseAndTerminalPunct()
Definition at line 807 of file ratngs.cpp.
811 if (word2.
unicharset() != uchset)
return false;
816 if (w1end - w1start != w2end - w2start)
return false;
817 for (
int i = 0; i < w1end - w1start; i++) {
◆ FindMatchingChoice()
Definition at line 182 of file ratngs.cpp.
186 BLOB_CHOICE_IT choice_it(bc_list);
187 for (choice_it.mark_cycle_pt(); !choice_it.cycled_list();
188 choice_it.forward()) {
◆ print_ratings_list()
void print_ratings_list |
( |
const char * |
msg, |
|
|
BLOB_CHOICE_LIST * |
ratings, |
|
|
const UNICHARSET & |
current_unicharset |
|
) |
| |
print_ratings_list
Send all the ratings out to the logfile.
- Parameters
-
msg | intro message |
ratings | list of ratings |
current_unicharset | unicharset that can be used for id-to-unichar conversion |
Definition at line 835 of file ratngs.cpp.
839 if (ratings->length() == 0) {
847 c_it.set_to_list(ratings);
848 for (c_it.mark_cycle_pt(); !c_it.cycled_list(); c_it.forward()) {
849 c_it.data()->print(¤t_unicharset);
850 if (!c_it.at_last())
tprintf(
"\n");
◆ kMaxBaselineDrift
const double kMaxBaselineDrift = 0.0625 |
◆ kMaxDropCapBottom
const int kMaxDropCapBottom = -128 |
◆ kMaxOverlapDenominator
const double kMaxOverlapDenominator = 0.125 |
◆ kMinSubscriptOffset
const int kMinSubscriptOffset = 20 |
◆ kMinSuperscriptOffset
const int kMinSuperscriptOffset = 20 |
◆ kMinXHeightMatch
const double kMinXHeightMatch = 0.5 |