Herror ::close_ocv (
    const HTuple &OCVHandle
)

Clear an OCV tool.

::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.


Parameters

OCVHandle (input_control)
ocv -> HTuple.long
Handle of the OCV tool which has to be freed.


Example
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 H_MSG_TRUE, if the handle is valid. Otherwise, an exception handling is raised.


Possible Predecessors

::read_ocv, ::create_ocv_proj


See also

::close_ocr


Module

Optical character verification



Copyright © 1996-2002 MVTec Software GmbH