/home/rays/src/opensrc/tesseract-ocr/dict/matchdefs.h File Reference
#include "host.h"
#include <stdio.h>
#include "unichar.h"
Go to the source code of this file.
Define Documentation
#define IsValidFeature |
( |
Fid |
|
) |
((Fid) < MAX_FEATURE_ID) |
all feature matchers that are to be used with the high level classifier must support the following interface. The names will, of course, be unique for each different matcher. Note also that FEATURE_STRUCT is a data structure that is defined specifically for each feature extractor/matcher pair.
#define IsValidProto |
( |
Pid |
|
) |
((Pid) >= 0) |
#define MAX_CLASS_ID (MAX_NUM_CLASSES - 1) |
#define MAX_FEATURE_ID 250 |
#define MAX_NUM_CLASSES 12288 |
---------------------------------------------------------------------------- Include Files and Type Defines ----------------------------------------------------------------------------
#define MISSING_PROTO 254 |
#define NOISE_FEATURE 254 |
Typedef Documentation
a CERTAINTY is an indication of the degree of confidence of the classifier. Higher is better. 0 means the match is as good as the mean of the matches seen in training. -1 means the match was one standard deviation worse than the training matches, etc.
a CLASS_ID is the ascii character to be associated with a class
FEATURE_ID is the index of a feature within a character description The feature id ranges from 0 to N-1 where N is the number of features in a character description.
a PROTO_ID is the index of a prototype within it's class. Valid proto id's are 0 to N-1 where N is the number of prototypes that make up the class.
a RATING is the match rating returned by a classifier. Higher is better.
define a data structure for holding an array of match results
Function Documentation
void PrintMatchResults _ARGS |
( |
(FILE *File, int N, MATCH_RESULT MatchResults[]) |
|
) |
|
void PrintMatchResult _ARGS |
( |
(FILE *File, MATCH_RESULT *MatchResult) |
|
) |
|