do_ocr_multi — Classify characters.
do_ocr_multi is obsolete and is only provided for reasons of backward compatibility. New applications should use the MLP, SVM or CNN based operators instead.
The operator do_ocr_multi assigns a class to every Character (character). For gray value features the gray values from the surrounding rectangles of the regions are used. The gray values will be taken from the parameter Image. For each character the corresponding class will be returned in Class and a confidence value will be returned in Confidence. The confidence value indicates the similarity between the input pattern and the assigned character.
Characters to be recognized.
Gray values for the characters.
ID of the OCR classifier.
Class (name) of the characters.
Number of elements: Class == Character
Confidence values of the characters.
Number of elements: Confidence == Character
If the input parameters are correct, the operator do_ocr_single returns the value 2 (H_MSG_TRUE). Otherwise an exception will be raised.
traind_ocr_class_box, trainf_ocr_class_box, read_ocr, connection, sort_region