Go to the source code of this file.
GOCR attributes | |
typedef enum attributetype | gocrAttributeType |
Typedef encapsulation. | |
enum | attributetype { VERBOSE, BLOCK_OVERLAP, NO_BLOCK, ERROR_FILE, PRINT, PRINT_IMAGE } |
Attributes of GOCR API that can be set by the user. More... | |
int | gocr_setAttribute ( gocrAttributeType t, void *value ) |
Sets an attribute value. See enum for list. More... | |
void* | gocr_getAttribute ( gocrAttributeType t ) |
Gets an attribute value. More... | |
Module system | |
typedef enum moduletype | gocr_moduleType |
Typedef encapsulation. | |
enum | moduletype { grayImageFilter, grayToBW, bwImageFilter, blockFinder, charFinder, charRecognizer, contextCorrection, outputFormatter, allModules } |
This is the module type list. More... | |
int | gocr_moduleLoad ( char *filename ) |
opens a module. More... | |
void | gocr_moduleClose ( int id ) |
closes a module. More... | |
int | gocr_moduleSetAttribute ( int id, void *a, void *b ) |
sets the attribute of a module. More... | |
int | gocr_functionInsertBefore ( gocr_moduleType t, char *functionname, void *data, int id ) |
inserts a module function in the list. More... | |
int | gocr_functionAppend ( gocr_moduleType t, char *functionname, void *data ) |
appends a module function to the list. More... | |
void* | gocr_functionDeleteById ( int id ) |
deletes a module function of the list. More... | |
int | gocr_runAllModules ( void ) |
Initialization/finalization | |
int | gocr_init ( int argc, char **argv ) |
Inits the library. More... | |
void | gocr_finalize ( void ) |
Close library. More... | |
Image | |
int | gocr_imageLoad ( const char *filename ) |
Loads an image. More... | |
void | gocr_imageClose ( void ) |
Closes an image. More... |
|
|
This is the module type list.
|
|
Inits the library. This function must be called before any other GOCR function.
|
|
Close library. This function must be called when you don't intend to use GOCR lib anymore. |
|
Sets an attribute value. See enum for list.
|
|
Gets an attribute value.
|
|
Loads an image. This function loads an image to the currentimage structure.
|
|
Closes an image. This function closes the image in currentimage, freeing all memory. |
|
opens a module. Long description.
|
|
closes a module. Given the library id, closes the module and frees every module function associated with it.
|
|
sets the attribute of a module. Sets the attribute of a module, if the module exports a function to set its attributes. Refer to the module documentation.
|
|
inserts a module function in the list. Inserts a function of module type t and name functionname before function id, and with user supplied data.
|
|
appends a module function to the list. Appends a function of module type t, name functionname and with user supplied data to the end of the module function list.
|
|
deletes a module function of the list. Deletes a module function, given its id, of the list, and returns the associated data.
|