write_ocr_class_knnπ
Short descriptionπ
write_ocr_class_knn β Write a k-NN classifier for an OCR task to a file.
Signatureπ
write_ocr_class_knn( ocr_knn OCRHandle, filename.write FileName )
Descriptionπ
write_ocr_class_knn writes the k-NN classifier for an OCR task with
the OCRHandle to the file given by FileName. If a
file extension is not specified in FileName the default
extension '.onc' is appended to FileName.
write_ocr_class_knn is typically called after the classifier
has been trained with trainf_ocr_class_knn. The classifier
can be read with read_ocr_class_knn.
Execution informationπ
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parametersπ
OCRHandle (input_control) ocr_knn β (handle)
Handle of the k-NN classifier for an OCR task.
FileName (input_control) filename.write β (string)
File name.
File extension: .onc
Resultπ
If the parameters are valid, the operator
write_ocr_class_knn returns the value 2 (H_MSG_TRUE). If necessary, an
exception is raised.
Combinations with other operatorsπ
Referencesπ
Marius Muja, David G. Lowe: ``Fast Approximate Nearest Neighbors with Automatic Algorithm Configurationββ; International Conference on Computer Vision Theory and Applications (VISAPP 09); 2009.
Moduleπ
OCR/OCV