ClassesClassesClassesClasses | | | | Operators

ocr_change_charT_ocr_change_charOcrChangeCharocr_change_charOcrChangeCharOcrChangeChar (Operator)

Name

ocr_change_charT_ocr_change_charOcrChangeCharocr_change_charOcrChangeCharOcrChangeChar — Define a new conversion table for the characters.

Warning

ocr_change_charocr_change_charOcrChangeCharocr_change_charOcrChangeCharOcrChangeChar is obsolete and is only provided for reasons of backward compatibility. New applications should use the MLP, SVM or CNN based operators instead.

Signature

ocr_change_char( : : OcrHandle, Character : )

Herror T_ocr_change_char(const Htuple OcrHandle, const Htuple Character)

Herror ocr_change_char(const HTuple& OcrHandle, const HTuple& Character)

void HOCRBox::OcrChangeChar(const HTuple& Character) const

void OcrChangeChar(const HTuple& OcrHandle, const HTuple& Character)

void HOCRBox::OcrChangeChar(const HTuple& Character) const

void HOperatorSetX.OcrChangeChar(
[in] VARIANT OcrHandle, [in] VARIANT Character)

void HOCRBoxX.OcrChangeChar([in] VARIANT Character)

static void HOperatorSet.OcrChangeChar(HTuple ocrHandle, HTuple character)

void HOCRBox.OcrChangeChar(HTuple character)

Description

The operator ocr_change_charocr_change_charOcrChangeCharocr_change_charOcrChangeCharOcrChangeChar establishes a new look-up table for the characters. Hereby the number of strings of CharacterCharacterCharacterCharacterCharactercharacter must be the same as of the classifier OcrHandleOcrHandleOcrHandleOcrHandleOcrHandleocrHandle. In order to enlarge the font, the operator ocr_change_charocr_change_charOcrChangeCharocr_change_charOcrChangeCharOcrChangeChar may be used as follows: More characters than actually needed will be indicated when creating a network using (create_ocr_class_boxcreate_ocr_class_boxCreateOcrClassBoxcreate_ocr_class_boxCreateOcrClassBoxCreateOcrClassBox). 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_charocr_change_charOcrChangeCharocr_change_charOcrChangeCharOcrChangeChar.

Parallelization

This operator modifies the state of the following input parameter:

The value of this parameter may not be shared across multiple threads without external synchronization.

Parameters

OcrHandleOcrHandleOcrHandleOcrHandleOcrHandleocrHandle (input_control, state is modified)  ocr_box HOCRBox, HTupleHTupleHOCRBox, HTupleHOCRBoxX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

ID of the OCR-network to be changed.

CharacterCharacterCharacterCharacterCharactercharacter (input_control)  string-array HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

New assign of characters.

Default value: ['a','b','c'] ["a","b","c"] ["a","b","c"] ["a","b","c"] ["a","b","c"] ["a","b","c"]

Example (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);

Result

If the number of characters in CharacterCharacterCharacterCharacterCharactercharacter is identical with the number of the characters of the network, the operator ocr_change_charocr_change_charOcrChangeCharocr_change_charOcrChangeCharOcrChangeChar returns the value 2 (H_MSG_TRUE). Otherwise an exception will be raised.

Possible Predecessors

read_ocrread_ocrReadOcrread_ocrReadOcrReadOcr

Possible Successors

do_ocr_multi_class_mlpdo_ocr_multi_class_mlpDoOcrMultiClassMlpdo_ocr_multi_class_mlpDoOcrMultiClassMlpDoOcrMultiClassMlp, do_ocr_single_class_mlpdo_ocr_single_class_mlpDoOcrSingleClassMlpdo_ocr_single_class_mlpDoOcrSingleClassMlpDoOcrSingleClassMlp

Module

OCR/OCV


ClassesClassesClassesClasses | | | | Operators