read_deep_ocr
— Read a Deep OCR model from a file.
read_deep_ocr( : : FileName : DeepOcrHandle)
The operator read_deep_ocr
reads a Deep OCR model.
Such models have to be in the HALCON format.
As a result, the handle DeepOcrHandle
is returned.
The model is loaded from the file FileName
.
This file is thereby searched in the directory $HALCONROOT/dl/
as well as in the currently used directory.
The default HALCON file extension for Deep OCR models is
'.hdo'
.
Please note that the values of runtime specific parameters are not written
to file, see write_deep_ocr
.
As a consequence when reading a model these parameters are initialized with
their default value, see get_deep_ocr_param
.
This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.
FileName
(input_control) filename.read →
(string)
Filename
File extension:
.hdo
DeepOcrHandle
(output_control) deep_ocr →
(handle)
Handle of the Deep OCR model.
If the parameters are valid, the operator read_deep_ocr
returns the value 2 (
H_MSG_TRUE)
. If necessary, an exception is raised.
set_deep_ocr_param
,
get_deep_ocr_param
,
apply_deep_ocr
OCR/OCV