HALCON Reference Manual 10.0.2
Table of Contents / Inspection / OCV ClassesClassesClasses | | | Operators

close_ocvclose_ocvclose_ocvCloseOcvCloseOcv (Operator)

Name

close_ocvclose_ocvclose_ocvCloseOcvCloseOcv — Clear an OCV tool.

Signature

close_ocv( : : OCVHandle : )

Herror close_ocv(const Hlong OCVHandle)

Herror T_close_ocv(const Htuple OCVHandle)

Herror close_ocv(const HTuple& OCVHandle)

void HOperatorSetX.CloseOcv([in] VARIANT OCVHandle)

static void HOperatorSet.CloseOcv(HTuple OCVHandle)

Description

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

Parallelization

Parameters

OCVHandleOCVHandleOCVHandleOCVHandleOCVHandle (input_control)  ocv HOCV, HTupleHOCV, HTupleHOCVX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

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

Possible Predecessors

read_ocvread_ocvread_ocvReadOcvReadOcv, create_ocv_projcreate_ocv_projcreate_ocv_projCreateOcvProjCreateOcvProj

See also

close_ocrclose_ocrclose_ocrCloseOcrCloseOcr

Module

OCR/OCV


Table of Contents / Inspection / OCV ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH