close_ocv — 清除 OCV 工具。
close_ocv( : : OCVHandle : )
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 (输入控制,状态被修改) ocv → (handle)
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 2 (
H_MSG_TRUE)
, if the handle is valid.否则,将抛出异常。
光学字符识别/光学字符验证