#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "adaptive.h"
#include "ambigs.h"
#include "bitvec.h"
#include "blobs.h"
#include "callcpp.h"
#include "classify.h"
#include "dict.h"
#include "errcode.h"
#include "featdefs.h"
#include "float2int.h"
#include "fontinfo.h"
#include <tesseract/genericvector.h>
#include <tesseract/helpers.h>
#include "intfx.h"
#include "intmatcher.h"
#include "intproto.h"
#include "matchdefs.h"
#include "mfoutline.h"
#include "normalis.h"
#include "normfeat.h"
#include "ocrfeatures.h"
#include "oldlist.h"
#include "outfeat.h"
#include "pageres.h"
#include "params.h"
#include "picofeat.h"
#include "protos.h"
#include "ratngs.h"
#include "rect.h"
#include "scrollview.h"
#include "seam.h"
#include <tesseract/serialis.h>
#include "shapeclassifier.h"
#include "shapetable.h"
#include <tesseract/strngs.h>
#include "tessclassifier.h"
#include "tessdatamanager.h"
#include "tprintf.h"
#include "trainingsample.h"
#include <tesseract/unichar.h>
#include "unicharset.h"
#include "unicity_table.h"
Go to the source code of this file.
◆ ADAPT_TEMPLATE_SUFFIX
#define ADAPT_TEMPLATE_SUFFIX ".a" |
◆ ADAPTABLE_WERD_ADJUSTMENT
#define ADAPTABLE_WERD_ADJUSTMENT (0.05) |
◆ MAX_ADAPTABLE_WERD_SIZE
#define MAX_ADAPTABLE_WERD_SIZE 40 |
◆ MAX_MATCHES
◆ NO_DEBUG
◆ UNLIKELY_NUM_FEAT
#define UNLIKELY_NUM_FEAT 200 |
◆ WORST_POSSIBLE_RATING
#define WORST_POSSIBLE_RATING (0.0f) |
◆ Y_DIM_OFFSET
◆ InitMatcherRatings()
void InitMatcherRatings |
( |
float * |
Rating | ) |
|
◆ MakeTempProtoPerm()
int MakeTempProtoPerm |
( |
void * |
item1, |
|
|
void * |
item2 |
|
) |
| |
This routine converts TempProto to be permanent if its proto id is used by the configuration specified in ProtoKey.
- Parameters
-
item1 | (TEMP_PROTO) temporary proto to compare to key |
item2 | (PROTO_KEY) defines which protos to make permanent |
Globals: none
- Returns
- true if TempProto is converted, false otherwise
Definition at line 1980 of file adaptmatch.cpp.
1986 TempProto = static_cast<TEMP_PROTO>(item1);
1987 ProtoKey = static_cast<PROTO_KEY *>(item2);
◆ MarginalMatch()
bool MarginalMatch |
( |
float |
confidence, |
|
|
float |
matcher_great_threshold |
|
) |
| |
|
inline |
Definition at line 131 of file adaptmatch.cpp.
132 return (1.0f - confidence) > matcher_great_threshold;
◆ SetAdaptiveThreshold()
void SetAdaptiveThreshold |
( |
float |
Threshold | ) |
|