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