clear_ocr_class_knnT_clear_ocr_class_knnClearOcrClassKnnClearOcrClassKnnclear_ocr_class_knn (Operator)
Name
clear_ocr_class_knnT_clear_ocr_class_knnClearOcrClassKnnClearOcrClassKnnclear_ocr_class_knn
— Clear an OCR classifier.
Signature
Herror T_clear_ocr_class_knn(const Htuple OCRHandle)
void ClearOcrClassKnn(const HTuple& OCRHandle)
void HOCRKnn::ClearOcrClassKnn() const
def clear_ocr_class_knn(ocrhandle: HHandle) -> None
Description
clear_ocr_class_knnclear_ocr_class_knnClearOcrClassKnnClearOcrClassKnnClearOcrClassKnnclear_ocr_class_knn
clears the OCR classifier given by
OCRHandleOCRHandleOCRHandleOCRHandleOCRHandleocrhandle
that was created with
create_ocr_class_knncreate_ocr_class_knnCreateOcrClassKnnCreateOcrClassKnnCreateOcrClassKnncreate_ocr_class_knn
and frees all memory required for the
classifier. After calling clear_ocr_class_knnclear_ocr_class_knnClearOcrClassKnnClearOcrClassKnnClearOcrClassKnnclear_ocr_class_knn
, the
classifier can no longer be used. The handle OCRHandleOCRHandleOCRHandleOCRHandleOCRHandleocrhandle
becomes invalid.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
This operator modifies the state of the following input parameter:
During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.
Parameters
OCRHandleOCRHandleOCRHandleOCRHandleOCRHandleocrhandle
(input_control, state is modified) ocr_knn →
HOCRKnn, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the OCR classifier.
Result
If OCRHandleOCRHandleOCRHandleOCRHandleOCRHandleocrhandle
is valid, the operator
clear_ocr_class_knnclear_ocr_class_knnClearOcrClassKnnClearOcrClassKnnClearOcrClassKnnclear_ocr_class_knn
returns the value TRUE. If necessary, an
exception is raised.
Possible Predecessors
trainf_ocr_class_knntrainf_ocr_class_knnTrainfOcrClassKnnTrainfOcrClassKnnTrainfOcrClassKnntrainf_ocr_class_knn
,
read_ocr_class_knnread_ocr_class_knnReadOcrClassKnnReadOcrClassKnnReadOcrClassKnnread_ocr_class_knn
See also
create_class_knncreate_class_knnCreateClassKnnCreateClassKnnCreateClassKnncreate_class_knn
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