next up previous contents index
Next: Picture block Up: Blocks are more than Previous: Blocks are more than   Contents   Index


Text block

This structure will probably be severely changed.

The text block structure is:

struct gocrtextblock { 
gocrBlock b;   /* parent; must be first field */ 

List  linelist; 

}; 

typedef struct gocrtextblock gocrTextBlock;

The gocrBlock b, as described above, is used to perform OO, and must be the first field. The only other field is a linked list (see section4.2) of text lines:

struct line { 
int  x0, x1; /* x-boundaries */

int  m0, m1, m2, m3; /* y-boundaries */

List  boxlist; 

}; typedef struct line gocrLine;
the x0 and x1 fields are the vertical boundaries, and the m? fields are y boundaries:



Field Description
m0 Top boundary
m1 Middle
m2 Baseline
m3 Bottom



PICTURE describing them

These fields are of utmost importance to the charRecognizer and charFinder modules, and their correct determination is crucial. Last is boxlist, which is a list of Boxes, a structure described in the next section.


next up previous contents index
Next: Picture block Up: Blocks are more than Previous: Blocks are more than   Contents   Index
root 2002-02-17