Go to the source code of this file.
GOCR attributes | |
| typedef enum gocr_attributetype | gocr_AttributeType |
| Typedef encapsulation. | |
| enum | gocr_attributetype { LIBVERSION, VERBOSE, BLOCK_OVERLAP, NO_BLOCK, CHAR_OVERLAP, CHAR_RECTANGLES, FIND_ALL, ERROR_FILE, PRINT, PRINT_IMAGE } |
| Attributes of GOCR API that can be set by the user. More... | |
| int | gocr_setAttribute (gocr_AttributeType t, void *value) |
| Sets an attribute value. | |
| void * | gocr_getAttribute (gocr_AttributeType t) |
| Gets an attribute value. | |
Module system | |
| typedef enum gocr_moduletype | gocr_ModuleType |
| Typedef encapsulation. | |
| typedef int | gocr_ModuleId |
| typedef int | gocr_ModuleFunctionId |
| enum | gocr_moduletype { imageLoader = 0, imageFilter, blockFinder, charFinder, charRecognizer, contextCorrection, outputFormatter, allModules } |
| This is the module type list. More... | |
| gocr_ModuleId | gocr_moduleLoad (char *filename) |
| opens a module package | |
| void | gocr_moduleClose (gocr_ModuleId id) |
| closes a module | |
| int | gocr_moduleSetAttribute (gocr_ModuleId id, char *a, char *b) |
| sets the attribute of a module. | |
| const struct gocr_moduleattributeinfo * | gocr_moduleGetAttributeList (gocr_ModuleId id) |
| gets the attribute list of a module package. | |
| const struct gocr_modulefunctioninfo * | gocr_moduleGetFunctionList (gocr_ModuleId id) |
| gets the function list of a module package. | |
| gocr_ModuleFunctionId | gocr_functionInsertBefore (char *functionname, gocr_ModuleId mid, void *data, gocr_ModuleFunctionId func) |
| inserts a module function in the list. | |
| gocr_ModuleFunctionId | gocr_functionAppend (char *functionname, gocr_ModuleId mid, void *data) |
| appends a module function to the list. | |
| void * | gocr_functionDeleteById (gocr_ModuleFunctionId id) |
| deletes a module function of the list. | |
| int | gocr_runAllModules (void) |
| process the image. | |
GUI functions | |
| typedef enum gocr_guifunction | gocr_GUIFunction |
| enum | gocr_guifunction { gocr_BeginWindow, gocr_EndWindow, gocr_DisplayCheckButton, gocr_DisplayImage, gocr_DisplayRadioButtons, gocr_DisplaySpinButton, gocr_DisplayText, gocr_DisplayTextField } |
| int | gocr_guiSetFunction (gocr_GUIFunction type, void *func) |
| sets a GUI wrapper function. | |
Initialization/finalization | |
| *int | gocr_init (int argc, char **argv) |
| Inits the library. | |
| void | gocr_finalize (void) |
| Close library. | |
Image | |
| void | gocr_imageClose (void) |
| Closes an image. | |
| *int(* | gocr_imageLoad )(const char *filename, void *data) |
Defines | |
| #define | GOCR_FALSE 0 |
| FALSE value. | |
| #define | GOCR_TRUE 1 |
| TRUE value. | |
|
|
|
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.
|
|
|
Closes an image. This function closes the image in currentimage, freeing all memory associated with it (except block structures). |
|
|
opens a module package 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.
|
|
|
gets the attribute list of a module package.
|
|
|
gets the function list of a module package.
|
|
||||||||||||||||||||
|
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.
|
|
|
process the image. This function calls every module function that were added, in correct order, taking care of all internal problems.
|
|
||||||||||||
|
sets a GUI wrapper function. long description
|
1.4.3-20050530