Skip to content

close_ocvCloseOcvCloseOcvclose_ocvT_close_ocv🔗

Short description🔗

close_ocvCloseOcvCloseOcvclose_ocvT_close_ocv — Clear an OCV tool.

Signature🔗

close_ocv( ocv OCVHandle )void CloseOcv( const HTuple& OCVHandle )static void HOperatorSet.CloseOcv( HTuple OCVHandle )def close_ocv( ocvhandle: HHandle ) -> None

Herror T_close_ocv( const Htuple OCVHandle )

void HOCV::CloseOcv( ) const

void HOCV.CloseOcv( )

Description🔗

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

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

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🔗

OCVHandleOCVHandleocvhandle (input_control, state is modified) ocv → (handle)HTuple (HHandle)HOCV, HTuple (IntPtr)HHandleHtuple (handle)

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

Combinations with other operators🔗

Combinations

Possible predecessors

read_ocvReadOcv, create_ocv_projCreateOcvProj

See also

close_ocrCloseOcr

Module🔗

OCR/OCV