write_dl_classifier
— Write a deep-learning-based classifier in a file.
write_dl_classifier
is obsolete and is only provided for
reasons of backward compatibility.
The operator will be removed with HALCON 25.05.
New applications should use the common
CNN-based operator write_dl_model
instead.
write_dl_classifier( : : DLClassifierHandle, FileName : )
write_dl_classifier
writes the deep-learning-based classifier
DLClassifierHandle
to the file given by FileName
.
write_dl_classifier
is typically called after the classifier has
been trained with train_dl_classifier_batch
. The classifier can be
read with read_dl_classifier
.
Please note that the runtime specific parameter 'gpu' of the classifier is not written.
The default HALCON file extension for deep learning classifiers is
'.hdl'
.
For an explanation of the concept of deep-learning-based classification see the introduction of chapter Deep Learning / Classification. The workflow involving this legacy operator is described in the chapter Legacy / DL Classification.
DLClassifierHandle
(input_control) dl_classifier →
(handle)
Handle of the deep-learning-based classifier.
FileName
(input_control) filename.write →
(string)
File name.
File extension:
.hdl
If the parameters are valid, the operator
write_dl_classifier
returns the value 2 (
H_MSG_TRUE)
. If
necessary, an exception is raised.
read_dl_classifier
,
train_dl_classifier_batch
,
set_dl_classifier_param
Deep Learning Enhanced