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.
|
OCVHandle (input_control) |
ocv -> HTuple.long |
| Handle of the OCV tool which has to be freed. | |
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);
::close_ocv returns H_MSG_TRUE, if the handle is valid. Otherwise, an exception handling is raised.
Optical character verification