All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
rejctmap.h File Reference
#include "memry.h"
#include "bits16.h"
#include "params.h"

Go to the source code of this file.

Classes

class  REJ
 
class  REJMAP
 

Macros

#define MAP_ACCEPT   '1'
 
#define MAP_REJECT_PERM   '0'
 
#define MAP_REJECT_TEMP   '2'
 
#define MAP_REJECT_POTENTIAL   '3'
 

Enumerations

enum  REJ_FLAGS {
  R_TESS_FAILURE, R_SMALL_XHT, R_EDGE_CHAR, R_1IL_CONFLICT,
  R_POSTNN_1IL, R_REJ_CBLOB, R_MM_REJECT, R_BAD_REPETITION,
  R_POOR_MATCH, R_NOT_TESS_ACCEPTED, R_CONTAINS_BLANKS, R_BAD_PERMUTER,
  R_HYPHEN, R_DUBIOUS, R_NO_ALPHANUMS, R_MOSTLY_REJ,
  R_XHT_FIXUP, R_BAD_QUALITY, R_DOC_REJ, R_BLOCK_REJ,
  R_ROW_REJ, R_UNLV_REJ, R_NN_ACCEPT, R_HYPHEN_ACCEPT,
  R_MM_ACCEPT, R_QUALITY_ACCEPT, R_MINIMAL_REJ_ACCEPT
}
 

Macro Definition Documentation

#define MAP_ACCEPT   '1'

Definition at line 95 of file rejctmap.h.

#define MAP_REJECT_PERM   '0'

Definition at line 96 of file rejctmap.h.

#define MAP_REJECT_POTENTIAL   '3'

Definition at line 98 of file rejctmap.h.

#define MAP_REJECT_TEMP   '2'

Definition at line 97 of file rejctmap.h.

Enumeration Type Documentation

enum REJ_FLAGS
Enumerator
R_TESS_FAILURE 
R_SMALL_XHT 
R_EDGE_CHAR 
R_1IL_CONFLICT 
R_POSTNN_1IL 
R_REJ_CBLOB 
R_MM_REJECT 
R_BAD_REPETITION 
R_POOR_MATCH 
R_NOT_TESS_ACCEPTED 
R_CONTAINS_BLANKS 
R_BAD_PERMUTER 
R_HYPHEN 
R_DUBIOUS 
R_NO_ALPHANUMS 
R_MOSTLY_REJ 
R_XHT_FIXUP 
R_BAD_QUALITY 
R_DOC_REJ 
R_BLOCK_REJ 
R_ROW_REJ 
R_UNLV_REJ 
R_NN_ACCEPT 
R_HYPHEN_ACCEPT 
R_MM_ACCEPT 
R_QUALITY_ACCEPT 
R_MINIMAL_REJ_ACCEPT 

Definition at line 51 of file rejctmap.h.

52 {
53  /* Reject modes which are NEVER overridden */
54  R_TESS_FAILURE, // PERM Tess didnt classify
55  R_SMALL_XHT, // PERM Xht too small
56  R_EDGE_CHAR, // PERM Too close to edge of image
57  R_1IL_CONFLICT, // PERM 1Il confusion
58  R_POSTNN_1IL, // PERM 1Il unrejected by NN
59  R_REJ_CBLOB, // PERM Odd blob
60  R_MM_REJECT, // PERM Matrix match rejection (m's)
61  R_BAD_REPETITION, // TEMP Repeated char which doesn't match trend
62 
63  /* Initial reject modes (pre NN_ACCEPT) */
64  R_POOR_MATCH, // TEMP Ray's original heuristic (Not used)
65  R_NOT_TESS_ACCEPTED, // TEMP Tess didnt accept WERD
66  R_CONTAINS_BLANKS, // TEMP Tess failed on other chs in WERD
67  R_BAD_PERMUTER, // POTENTIAL Bad permuter for WERD
68 
69  /* Reject modes generated after NN_ACCEPT but before MM_ACCEPT */
70  R_HYPHEN, // TEMP Post NN dodgy hyphen or full stop
71  R_DUBIOUS, // TEMP Post NN dodgy chars
72  R_NO_ALPHANUMS, // TEMP No alphanumerics in word after NN
73  R_MOSTLY_REJ, // TEMP Most of word rejected so rej the rest
74  R_XHT_FIXUP, // TEMP Xht tests unsure
75 
76  /* Reject modes generated after MM_ACCEPT but before QUALITY_ACCEPT */
77  R_BAD_QUALITY, // TEMP Quality metrics bad for WERD
78 
79  /* Reject modes generated after QUALITY_ACCEPT but before MINIMAL_REJ accep*/
80  R_DOC_REJ, // TEMP Document rejection
81  R_BLOCK_REJ, // TEMP Block rejection
82  R_ROW_REJ, // TEMP Row rejection
83  R_UNLV_REJ, // TEMP ~ turned to - or ^ turned to space
84 
85  /* Accept modes which occur inbetween the above rejection groups */
86  R_NN_ACCEPT, //NN acceptance
87  R_HYPHEN_ACCEPT, //Hyphen acceptance
88  R_MM_ACCEPT, //Matrix match acceptance
89  R_QUALITY_ACCEPT, //Accept word in good quality doc
90  R_MINIMAL_REJ_ACCEPT //Accept EVERYTHING except tess failures
91 };