Name
close_ocrclose_ocrCloseOcrclose_ocrCloseOcrCloseOcr — Deallocation of the memory of an OCR classifier.
The operator close_ocrclose_ocrCloseOcrclose_ocrCloseOcrCloseOcr deallocates the
memory of the classifier having the number OcrHandleOcrHandleOcrHandleOcrHandleOcrHandleocrHandle.
Hereby all corresponding data will be deleted. However,
if necessary, they can be saved in advance using the
operator write_ocrwrite_ocrWriteOcrwrite_ocrWriteOcrWriteOcr.
The number OcrHandleOcrHandleOcrHandleOcrHandleOcrHandleocrHandle will be invalid after the call;
but later the system can use it again for new classifiers.
All data of the classifier will be deleted in main memory (not on the
hard disk).
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
ID of the OCR classifier to be deleted.
HTuple OcrHandle,Class,Confidence;
Hlong orc_handle;
read_ocr("testnet",&orc_handle);
/* image processing */
create_tuple(&OcrHandle,1);
set_i(OcrHandle,orc_handle,0);
T_do_ocr_multi(Character,Image,OcrHandle,&Class,&Confidence);
close_ocr(orc_handle);
If the parameter OcrHandleOcrHandleOcrHandleOcrHandleOcrHandleocrHandle is valid, the operator
close_ocrclose_ocrCloseOcrclose_ocrCloseOcrCloseOcr returns the value 2 (H_MSG_TRUE).
Otherwise an exception will be raised.
write_ocr_trainfwrite_ocr_trainfWriteOcrTrainfwrite_ocr_trainfWriteOcrTrainfWriteOcrTrainf
read_ocrread_ocrReadOcrread_ocrReadOcrReadOcr
OCR/OCV