Operator Reference
close_ocv (Operator)
close_ocv
— Clear an OCV tool.
Signature
close_ocv( : : OCVHandle : )
Description
close_ocv
closes an open OCV tool and frees the memory.
The OCV tool has been created using create_ocv_proj
or
read_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
OCVHandle
(input_control, state is modified) ocv →
(handle)
Handle of the OCV tool which has to be freed.
Example (C++)
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_ocv
returns 2 (
H_MSG_TRUE)
, if the handle is valid.
Otherwise, an exception is raised.
Possible Predecessors
See also
Module
OCR/OCV