Defining a new conversion table for the characters.
The operator ::ocr_change_char establishes a new look-up table for the characters. Hereby the number of strings of Character must be the same as of the classifier OcrHandle. In order to enlarge the font, the operator ::ocr_change_char may be used as follows: More characters than actually needed will be indicated when creating a network using (::create_ocr_class_box). The last n characters will not be used so far. If more characters are needed at a later stage, these unused characters will be allocated and then trained with the help of the operator ::ocr_change_char.
|
OcrHandle (input_control) |
ocr -> HTuple.long |
| ID of the OCR-network to be changed. | |
|
Character (input_control) |
string-array -> HTuple.char * |
| New assign of characters. | |
| Default value: '['a','b','c']' | |
HTuple Character1, Character2, OcrHandle;
create_tuple(&Character1,26);
set_s(Character1,"a",0);
set_s(Character1,"b",1);
/* set parameter values */
T_create_ocr_net(WidthPattern,HeightPattern,Interpolation,
Features,HiddenLayer,Init,Character1,&OcrHandle);
/* later... */
create_tuple(&Character2,26);
set_s(Character2,"alpha",0);
set_s(Character2,"beta",1);
T_ocr_change_char(OcrHandle,Character2);
If the number of characters in Character is identical with the number of the characters of the network, the operator ::ocr_change_char returns the value H_MSG_TRUE. Otherwise an exception will be raised.
::do_ocr_multi, ::do_ocr_single, ::write_ocr
Optical character recognition