Operator Reference

close_ocvT_close_ocvCloseOcvCloseOcvclose_ocv (Operator)

close_ocvT_close_ocvCloseOcvCloseOcvclose_ocv — Clear an OCV tool.

Signature

close_ocv( : : OCVHandle : )

Herror T_close_ocv(const Htuple OCVHandle)

void CloseOcv(const HTuple& OCVHandle)

void HOCV::CloseOcv() const

static void HOperatorSet.CloseOcv(HTuple OCVHandle)

void HOCV.CloseOcv()

def close_ocv(ocvhandle: HHandle) -> None

Description

close_ocvclose_ocvCloseOcvCloseOcvclose_ocv closes an open OCV tool and frees the memory. The OCV tool has been created using create_ocv_projcreate_ocv_projCreateOcvProjCreateOcvProjcreate_ocv_proj or read_ocvread_ocvReadOcvReadOcvread_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

OCVHandleOCVHandleOCVHandleOCVHandleocvhandle (input_control, state is modified)  ocv HOCV, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (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_ocvclose_ocvCloseOcvCloseOcvclose_ocv returns 2 ( H_MSG_TRUE) , if the handle is valid. Otherwise, an exception is raised.

Possible Predecessors

read_ocvread_ocvReadOcvReadOcvread_ocv, create_ocv_projcreate_ocv_projCreateOcvProjCreateOcvProjcreate_ocv_proj

See also

close_ocrclose_ocrCloseOcrCloseOcrclose_ocr

Module

OCR/OCV