write_ocvT_write_ocvWriteOcvWriteOcvwrite_ocv (Operator)

Name

write_ocvT_write_ocvWriteOcvWriteOcvwrite_ocv — Saving an OCV tool to file.

Signature

write_ocv( : : OCVHandle, FileName : )

Herror T_write_ocv(const Htuple OCVHandle, const Htuple FileName)

void WriteOcv(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)

static void HOperatorSet.WriteOcv(HTuple OCVHandle, HTuple fileName)

void HOCV.WriteOcv(string fileName)

def write_ocv(ocvhandle: HHandle, file_name: str) -> None

Description

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

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

Execution Information

Parameters

OCVHandleOCVHandleOCVHandleOCVHandleOCVHandleocvhandle (input_control)  ocv HOCV, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the OCV tool to be written.

FileNameFileNameFileNameFileNamefileNamefile_name (input_control)  filename.write HTuplestrHTupleHtuple (string) (string) (HString) (char*)

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

Default value: 'test_ocv' "test_ocv" "test_ocv" "test_ocv" "test_ocv" "test_ocv"

File extension: .ocv

Result

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

Possible Predecessors

traind_ocv_projtraind_ocv_projTraindOcvProjTraindOcvProjTraindOcvProjtraind_ocv_proj

Possible Successors

close_ocvclose_ocvCloseOcvCloseOcvCloseOcvclose_ocv

See also

write_ocrwrite_ocrWriteOcrWriteOcrWriteOcrwrite_ocr

Module

OCR/OCV