close_ocr ( : : OcrHandle : )

Deallocation of the memory of an OCR classifier.

The operator close_ocr deallocates the memory of the classifier having the number OcrHandle. Hereby all corresponding data will be deleted. However, if necessary, they can be saved in advance using the operator write_ocr. The number OcrHandle will be invalid after the call; but later the system can use it again for new classifiers.


Attention

All data of the classifier will be deleted in main memory (not on the hard disk).


Parameters

OcrHandle (input_control)
ocr -> integer
ID of the OCR classifier to be deleted.


Result

If the parameter OcrHandle is valid, the operator close_ocr returns the value 2 (H_MSG_TRUE). Otherwise an exception will be raised.


Parallelization Information

close_ocr is reentrant and processed without parallelization.


Possible Predecessors

write_ocr_trainf


Possible Successors

read_ocr


Module

Optical character recognition



Copyright © 1996-2005 MVTec Software GmbH