close_ocvT_close_ocvCloseOcvCloseOcv (Operator)

Name

close_ocvT_close_ocvCloseOcvCloseOcv — 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()

Description

close_ocvclose_ocvCloseOcvCloseOcvCloseOcv closes an open OCV tool and frees the memory. The OCV tool has been created using create_ocv_projcreate_ocv_projCreateOcvProjCreateOcvProjCreateOcvProj or read_ocvread_ocvReadOcvReadOcvReadOcv. The handle is after this call no longer valid.

Execution Information

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, HTupleHTupleHtuple (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_ocvCloseOcvCloseOcvCloseOcv returns 2 (H_MSG_TRUE), if the handle is valid. Otherwise, an exception is raised.

Possible Predecessors

read_ocvread_ocvReadOcvReadOcvReadOcv, create_ocv_projcreate_ocv_projCreateOcvProjCreateOcvProjCreateOcvProj

See also

close_ocrclose_ocrCloseOcrCloseOcrCloseOcr

Module

OCR/OCV