0
|
1 |
#ifndef link__h
|
|
2 |
#define link__h
|
|
3 |
|
|
4 |
int init_link_vars();
|
|
5 |
extern int ENABLE_USER_INTERFACE;
|
|
6 |
extern int DISPLAY_SPELLING_MISTAKES;
|
|
7 |
extern int NoiseTolerance; // Minimum number of pixels in row of text
|
|
8 |
extern int MinLineSize; // Minimum number of rows in a line of text
|
|
9 |
extern int MinVertSeparation; // Minimum number of rows between lines of tex
|
|
10 |
extern int MinHorizSeparation; // Minimum number of blank pixels btween chars
|
|
11 |
extern int ConfidenceThreshold;// Minimum confidence for some operations
|
|
12 |
extern int JoinTolerance; // Maximum number of pixels in a column
|
|
13 |
// joining two fused characters
|
|
14 |
|
|
15 |
extern double MaxHWRatio; // Max H/W ratio of learned set
|
|
16 |
extern int MinWidth; // minimum component width in learned set
|
|
17 |
|
|
18 |
// The next three are used in character grouping
|
|
19 |
extern unsigned int NumCharGroups;
|
|
20 |
extern int MaxVertSize; // Max vert pixels in char (used for baseline)
|
|
21 |
extern int BaseLineTolerance; // How far from baseline is okay 1/%linesize
|
|
22 |
extern int TopLineTolerance; // How far from topline is okay 1/%linesize
|
|
23 |
|
|
24 |
/* Constants for the number of horizontal and vertical divisions
|
|
25 |
for determining the gray scale property vector for each component */
|
|
26 |
|
|
27 |
extern int NumHorizDiv; //Number of horizontal divisions
|
|
28 |
extern int NumVertDiv; //Number of vertical divisions
|
|
29 |
|
|
30 |
#endif
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|