tesseract v5.3.3.20231005
adaptmatch.cpp File Reference
#include "adaptive.h"
#include "ambigs.h"
#include "bitvec.h"
#include "blobs.h"
#include "classify.h"
#include "dict.h"
#include "errcode.h"
#include "featdefs.h"
#include "float2int.h"
#include "fontinfo.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 "shapeclassifier.h"
#include "shapetable.h"
#include "tessclassifier.h"
#include "tessdatamanager.h"
#include "tprintf.h"
#include "trainingsample.h"
#include "unicharset.h"
#include "unicity_table.h"
#include <tesseract/unichar.h>
#include "helpers.h"
#include "serialis.h"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstring>

Go to the source code of this file.

Classes

struct  tesseract::ADAPT_RESULTS
 
struct  tesseract::PROTO_KEY
 

Namespaces

namespace  tesseract
 

Macros

#define classify_enable_adaptive_matcher   true
 
#define ADAPT_TEMPLATE_SUFFIX   ".a"
 
#define MAX_MATCHES   10
 
#define UNLIKELY_NUM_FEAT   200
 
#define NO_DEBUG   0
 
#define MAX_ADAPTABLE_WERD_SIZE   40
 
#define ADAPTABLE_WERD_ADJUSTMENT   (0.05)
 
#define Y_DIM_OFFSET   (Y_SHIFT - BASELINE_Y_SHIFT)
 
#define WORST_POSSIBLE_RATING   (0.0f)
 

Functions

bool tesseract::MarginalMatch (float confidence, float matcher_great_threshold)
 
void tesseract::InitMatcherRatings (float *Rating)
 
int tesseract::MakeTempProtoPerm (void *item1, void *item2)
 
void tesseract::SetAdaptiveThreshold (float Threshold)
 

Macro Definition Documentation

◆ ADAPT_TEMPLATE_SUFFIX

#define ADAPT_TEMPLATE_SUFFIX   ".a"

Definition at line 80 of file adaptmatch.cpp.

◆ ADAPTABLE_WERD_ADJUSTMENT

#define ADAPTABLE_WERD_ADJUSTMENT   (0.05)

Definition at line 87 of file adaptmatch.cpp.

◆ classify_enable_adaptive_matcher

#define classify_enable_adaptive_matcher   true

Definition at line 78 of file adaptmatch.cpp.

◆ MAX_ADAPTABLE_WERD_SIZE

#define MAX_ADAPTABLE_WERD_SIZE   40

Definition at line 85 of file adaptmatch.cpp.

◆ MAX_MATCHES

#define MAX_MATCHES   10

Definition at line 82 of file adaptmatch.cpp.

◆ NO_DEBUG

#define NO_DEBUG   0

Definition at line 84 of file adaptmatch.cpp.

◆ UNLIKELY_NUM_FEAT

#define UNLIKELY_NUM_FEAT   200

Definition at line 83 of file adaptmatch.cpp.

◆ WORST_POSSIBLE_RATING

#define WORST_POSSIBLE_RATING   (0.0f)

Definition at line 91 of file adaptmatch.cpp.

◆ Y_DIM_OFFSET

#define Y_DIM_OFFSET   (Y_SHIFT - BASELINE_Y_SHIFT)

Definition at line 89 of file adaptmatch.cpp.