Herror ::write_ocv (
    const HTuple &OCVHandle,
    const HTuple &FileName
)

Saving an OCV tool to file.

::write_ocv writes an OCV tool to file. This can be used to save the result of a training (::traind_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_ocv.

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


Parameters

OCVHandle (input_control)
ocv -> HTuple.long
Handle of the OCV tool to be written.

FileName (input_control)
filename -> HTuple.char *
Name of the file where the tool has to be saved.
Default value: 'test_ocv'


Result

::write_ocv returns H_MSG_TRUE, if the data is correct and the file can be written. Otherwise, an exception handling is raised.


Possible Predecessors

::traind_ocv_proj


Possible Successors

::close_ocv


See also

::write_ocr


Module

Optical character verification



Copyright © 1996-2002 MVTec Software GmbH