Go to the source code of this file.
Classes | |
struct | gocr_char |
This is the character structure. More... | |
struct | gocr_box |
This is the box structure. More... | |
charFinder functions | |
#define | GOCR_SET 1 |
#define | GOCR_UNSET 0 |
int | gocr_charBegin (void) |
inits a new character structure. | |
int | gocr_charEnd (void) |
closes a new character structure. | |
int | gocr_charSetAllNearPixels (int action, int x, int y, int connect) |
int | gocr_charSetAttribute (int action, char *name,...) |
set/unset a character attribute | |
int | gocr_charSetPixel (int action, int x, int y) |
set/unset a pixel. | |
int | gocr_charSetRect (int action, int x0, int y0, int x1, int y1) |
set/unset all pixels in a rectangle. | |
Character | |
typedef gocr_char | gocr_Char |
Typedef encapsulation. | |
typedef gocr_box | gocr_Box |
Typedef encapsulation. | |
typedef enum gocr_charattributetype | gocr_CharAttributeType |
Typedef encapsulation. | |
enum | gocr_charattributetype { SETTABLE, UNTIL_OVERRIDEN } |
charRecog functions | |
int | gocr_charAttributeRegister (char *name, gocr_CharAttributeType t, char *format) |
Register a character attribute. | |
int | gocr_charAttributeInsert (char *name,...) |
int | gocr_boxCharSet (gocr_Box *b, wchar_t w, float prob) |
Sets a possible character to a box. |
|
inits a new character structure. Long description.
|
|
closes a new character structure. Long description; adds to the character list.
|
|
set/unset a character attribute Long description. attribute must be registered. Function prototype not stable yet. Currently (deliberatedly) not working. See gocr_boxAttributeSet.
|
|
set/unset a pixel. This functions selects or unselects a pixel.
|
|
set/unset all pixels in a rectangle. This function allows you to select or unselect all pixels in a rectangle defined by two opposite vertices. The rectangle must be entirely in the image. The boundaries of the rectangle are considered to be part of it: a rectangle defined by (1,1), (1,1) vertices is the point (1,1). If the CHAR_OVERLAP flag is false, and you are creating a new character (i.e., used gocr_charBegin and not gocr_charSplitBegin) it automatically selects only those pixels which are not already part of another character.
|
|
Register a character attribute. This functions registers a certain attribute... Long description.
|
|
Sets a possible character to a box. Long description.
|