Herror ::read_ocr (
    const HTuple &FileName,
    long *OcrHandle
)

Reading of an OCR classifier from a file.

The operator ::read_ocr reads an OCR classifier from a file FileName. This file will hereby be searched in the directory (HALCONROOT/ocr/) as well as in the currently used directory. If too many classifiers have been loaded, an error message will be displayed.


Parameters

FileName (input_control)
filename -> HTuple.char *
Name of the OCR classifier file.
Default value: 'testnet'

OcrHandle (output_control)
ocr -> long *
ID of the read OCR classifier.


Result

If the indicated file is available and the format is correct, the operator ::read_ocr returns the value H_MSG_TRUE. Otherwise an exception will be raised.


Possible Predecessors

::reset_obj_db


Possible Successors

::do_ocr_multi, ::do_ocr_single, ::traind_ocr_class_box, ::trainf_ocr_class_box


See also

::write_ocr, ::do_ocr_multi, ::traind_ocr_class_box, ::trainf_ocr_class_box


Module

Optical character recognition



Copyright © 1996-2002 MVTec Software GmbH