write_ocr_class_knnT_write_ocr_class_knnWriteOcrClassKnnWriteOcrClassKnn (Operator)
Name
write_ocr_class_knnT_write_ocr_class_knnWriteOcrClassKnnWriteOcrClassKnn
— Write a k-NN classifier for an OCR task to a file.
Signature
Description
write_ocr_class_knnwrite_ocr_class_knnWriteOcrClassKnnWriteOcrClassKnnWriteOcrClassKnn
writes the k-NN classifier for an OCR task with
the OCRHandleOCRHandleOCRHandleOCRHandleOCRHandle
to the file given by FileNameFileNameFileNameFileNamefileName
. If a
file extension is not specified in FileNameFileNameFileNameFileNamefileName
the default
extension '.onc'".onc"".onc"".onc"".onc" is appended to FileNameFileNameFileNameFileNamefileName
.
write_ocr_class_knnwrite_ocr_class_knnWriteOcrClassKnnWriteOcrClassKnnWriteOcrClassKnn
is typically called after the classifier
has been trained with trainf_ocr_class_knntrainf_ocr_class_knnTrainfOcrClassKnnTrainfOcrClassKnnTrainfOcrClassKnn
. The classifier
can be read with read_ocr_class_knnread_ocr_class_knnReadOcrClassKnnReadOcrClassKnnReadOcrClassKnn
.
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
OCRHandleOCRHandleOCRHandleOCRHandleOCRHandle
(input_control) ocr_knn →
HOCRKnn, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the k-NN classifier for an OCR task.
FileNameFileNameFileNameFileNamefileName
(input_control) filename.write →
HTupleHTupleHtuple (string) (string) (HString) (char*)
File name.
File extension: .onc
Result
If the parameters are valid, the operator
write_ocr_class_knnwrite_ocr_class_knnWriteOcrClassKnnWriteOcrClassKnnWriteOcrClassKnn
returns the value 2 (H_MSG_TRUE). If necessary, an
exception is raised.
Possible Predecessors
trainf_ocr_class_knntrainf_ocr_class_knnTrainfOcrClassKnnTrainfOcrClassKnnTrainfOcrClassKnn
,
read_ocr_class_knnread_ocr_class_knnReadOcrClassKnnReadOcrClassKnnReadOcrClassKnn
See also
create_class_knncreate_class_knnCreateClassKnnCreateClassKnnCreateClassKnn
,
read_ocr_class_knnread_ocr_class_knnReadOcrClassKnnReadOcrClassKnnReadOcrClassKnn
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