traind_ocr_class_box — Train an OCR classifier by the input of regions.
traind_ocr_class_box is obsolete and is only provided for
reasons of backward compatibility. New applications should use the
MLP, SVM or CNN based operators instead.
traind_ocr_class_box trains the classifier
directly via the input of regions in an image.
Any number of regions of an image can be passed.
For each character (region) in
corresponding name (class)
Class must be
specified. The gray values are passed in
When the procedure has finished the parameter
provides information about the success of the training: It contains
the average confidence of the trained characters measured by a
re-classification. The confidence of mismatched characters
is set to 0 (thus, the average confidence will be decreased significantly).
This operator modifies the state of the following input parameter:
During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.
Characters to be trained.
→object (byte / uint2)
Gray values for the characters.
OcrHandle(input_control, state is modified) ocr_box
ID of the desired OCR-classifier.
Class (name) of the characters.
Default value: 'a'
Average confidence during a re-classification of the trained characters.
If the parameters are correct, the operator
traind_ocr_class_box returns the value 2 (H_MSG_TRUE).
Otherwise an exception will be raised.