Skip to content

write_ocvWriteOcvWriteOcvwrite_ocvT_write_ocv🔗

Short description🔗

write_ocvWriteOcvWriteOcvwrite_ocvT_write_ocv — Saving an OCV tool to file.

Signature🔗

write_ocv( ocv OCVHandle, filename.write FileName )void WriteOcv( const HTuple& OCVHandle, const HTuple& FileName )static void HOperatorSet.WriteOcv( HTuple OCVHandle, HTuple fileName )def write_ocv( ocvhandle: HHandle, file_name: str ) -> None

Herror T_write_ocv( const Htuple OCVHandle, const Htuple FileName )

void HOCV::WriteOcv( const HString& FileName ) const

void HOCV::WriteOcv( const char* FileName ) const

void HOCV::WriteOcv( const wchar_t* FileName ) const (Windows only)

void HOCV.WriteOcv( string fileName )

Description🔗

write_ocvWriteOcv writes an OCV tool to file. This can be used to save the result of a training (traind_ocv_projTraindOcvProj). The whole information contained in the OCV tool is stored in the file. The file can be reloaded afterwards using the operator read_ocvReadOcv.

As file extension ‘.ocv’ is used. If this extension is not given with the file name, it will be added automatically.

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.

Parameters🔗

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

Handle of the OCV tool to be written.

FileNamefileNamefile_name (input_control) filename.write → (string)HTuple (HString)HTuple (string)strHtuple (char*)

Name of the file where the tool has to be saved.

Default: 'test_ocv'"test_ocv"
File extension: .ocv

Result🔗

write_ocvWriteOcv returns 2 (H_MSG_TRUE), if the data is correct and the file can be written. Otherwise, an exception is raised.

Combinations with other operators🔗

Combinations

Possible predecessors

traind_ocv_projTraindOcvProj

Possible successors

close_ocvCloseOcv

See also

write_ocrWriteOcr

Module🔗

OCR/OCV