testd_ocr_class_box — Test an OCR classifier.
testd_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.
The operator testd_ocr_class_box tests the confidence with which a character belongs to a given class. Any number of regions of an image can be passed. For each character (region) in Character the corresponding name (class) Class must be specified. The gray values are passed in Image. When the operator has finished the parameter Confidence provides information about how sure a character belongs to the (arbitrary chosen) class.
Characters to be tested.
Gray values for the characters.
ID of the desired OCR-classifier.
Class (name) of the characters.
Default value: 'a'
Confidence for the character to belong to the class.
If the parameters are correct, the operator testd_ocr_class_box returns the value 2 (H_MSG_TRUE). Otherwise an exception will be raised.
read_ocr, trainf_ocr_class_box, traind_ocr_class_box