get_params_ocr_class_knn — Return the parameters of an OCR classifier.
get_params_ocr_class_knn returns the parameters of an OCR classifier that were specified when the classifier was created with create_ocr_class_knn. This is particularly useful if the classifier was read with read_ocr_class_knn. The output of get_params_ocr_class_knn can, for example, be used to check whether a character to be read is contained in the classifier. For a description of the parameters, see create_ocr_class_knn and trainf_ocr_class_knn.
Handle of the OCR classifier.
Width of the rectangle to which the gray values of the segmented character are zoomed.
Height of the rectangle to which the gray values of the segmented character are zoomed.
Interpolation mode for the zooming of the characters.
Features to be used for classification.
Characters of the character set to be read.
Type of preprocessing used to transform the feature vectors.
Number of different trees used during the classifcation.
If the parameters are valid, the operator get_params_ocr_class_knn returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.