close_ocvT_close_ocvCloseOcvCloseOcvclose_ocv (Operator)
Name
close_ocvT_close_ocvCloseOcvCloseOcvclose_ocv
— Clear an OCV tool.
Signature
void CloseOcv(const HTuple& OCVHandle)
void HOCV::CloseOcv() const
Description
close_ocvclose_ocvCloseOcvCloseOcvCloseOcvclose_ocv
closes an open OCV tool and frees the memory.
The OCV tool has been created using create_ocv_projcreate_ocv_projCreateOcvProjCreateOcvProjCreateOcvProjcreate_ocv_proj
or
read_ocvread_ocvReadOcvReadOcvReadOcvread_ocv
. The handle is after this call no longer valid.
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
OCVHandleOCVHandleOCVHandleOCVHandleOCVHandleocvhandle
(input_control, state is modified) ocv →
HOCV, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the OCV tool which has to be freed.
Example (C++ (HALCON 5.0-10.0))
read_ocv("ocv_file",&ocv_handle);
for (i=0; i<1000; i++)
{
grab_image_async(&Image,fg_handle,-1);
reduce_domain(Image,ROI,&Pattern);
do_ocv_simple(Pattern,ocv_handle,"A",
"true","true","false","true",10,
&Quality);
}
close_ocv(ocv_handle);
Result
close_ocvclose_ocvCloseOcvCloseOcvCloseOcvclose_ocv
returns TRUE, if the handle is valid.
Otherwise, an exception is raised.
Possible Predecessors
read_ocvread_ocvReadOcvReadOcvReadOcvread_ocv
,
create_ocv_projcreate_ocv_projCreateOcvProjCreateOcvProjCreateOcvProjcreate_ocv_proj
See also
close_ocrclose_ocrCloseOcrCloseOcrCloseOcrclose_ocr
Module
OCR/OCV