clear_ocr_class_cnnT_clear_ocr_class_cnnClearOcrClassCnnClearOcrClassCnnclear_ocr_class_cnn (Operator)

Name

clear_ocr_class_cnnT_clear_ocr_class_cnnClearOcrClassCnnClearOcrClassCnnclear_ocr_class_cnn — Clear an CNN-based OCR classifier.

Signature

clear_ocr_class_cnn( : : OCRHandle : )

Herror T_clear_ocr_class_cnn(const Htuple OCRHandle)

void ClearOcrClassCnn(const HTuple& OCRHandle)

static void HOCRCnn::ClearOcrClassCnn(const HOCRCnnArray& OCRHandle)

void HOCRCnn::ClearOcrClassCnn() const

static void HOperatorSet.ClearOcrClassCnn(HTuple OCRHandle)

static void HOCRCnn.ClearOcrClassCnn(HOCRCnn[] OCRHandle)

void HOCRCnn.ClearOcrClassCnn()

def clear_ocr_class_cnn(ocrhandle: MaybeSequence[HHandle]) -> None

Description

clear_ocr_class_cnnclear_ocr_class_cnnClearOcrClassCnnClearOcrClassCnnclear_ocr_class_cnn clears the OCR classifier given by OCRHandleOCRHandleOCRHandleOCRHandleocrhandle that was read with read_ocr_class_cnnread_ocr_class_cnnReadOcrClassCnnReadOcrClassCnnread_ocr_class_cnn and frees all memory required for the classifier. After calling clear_ocr_class_cnnclear_ocr_class_cnnClearOcrClassCnnClearOcrClassCnnclear_ocr_class_cnn, the classifier can no longer be used. The handle OCRHandleOCRHandleOCRHandleOCRHandleocrhandle becomes invalid.

Execution Information

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

OCRHandleOCRHandleOCRHandleOCRHandleocrhandle (input_control, state is modified)  ocr_cnn(-array) HOCRCnn, HTupleMaybeSequence[HHandle]HTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the OCR classifier.

Result

If OCRHandleOCRHandleOCRHandleOCRHandleocrhandle is valid, the operator clear_ocr_class_cnnclear_ocr_class_cnnClearOcrClassCnnClearOcrClassCnnclear_ocr_class_cnn returns the value 2 ( H_MSG_TRUE) . If necessary, an exception is raised.

Possible Predecessors

do_ocr_single_class_cnndo_ocr_single_class_cnnDoOcrSingleClassCnnDoOcrSingleClassCnndo_ocr_single_class_cnn, do_ocr_multi_class_cnndo_ocr_multi_class_cnnDoOcrMultiClassCnnDoOcrMultiClassCnndo_ocr_multi_class_cnn, do_ocr_word_cnndo_ocr_word_cnnDoOcrWordCnnDoOcrWordCnndo_ocr_word_cnn

See also

read_ocr_class_cnnread_ocr_class_cnnReadOcrClassCnnReadOcrClassCnnread_ocr_class_cnn

Module

OCR/OCV