#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 "genericvector.h"
#include "helpers.h"
#include "host.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 "serialis.h"
#include "shapeclassifier.h"
#include "shapetable.h"
#include "strngs.h"
#include "tessclassifier.h"
#include "tessdatamanager.h"
#include "tprintf.h"
#include "trainingsample.h"
#include "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 1985 of file adaptmatch.cpp.
#define TempConfigFor(Class, ConfigId)
ADAPT_CLASS Class[MAX_NUM_CLASSES]
#define MakeProtoPermanent(Class, ProtoId)
ADAPT_TEMPLATES Templates
TEMP_PROTO_STRUCT * TEMP_PROTO
void FreeTempProto(void *arg)
void AddProtoToClassPruner(PROTO Proto, CLASS_ID ClassId, INT_TEMPLATES Templates)
#define test_bit(array, bit)
◆ MarginalMatch()
bool MarginalMatch |
( |
float |
confidence, |
|
|
float |
matcher_great_threshold |
|
) |
| |
|
inline |
Definition at line 132 of file adaptmatch.cpp.
133 return (1.0f - confidence) > matcher_great_threshold;
◆ SetAdaptiveThreshold()
void SetAdaptiveThreshold |
( |
float |
Threshold | ) |
|