ClassesClasses | | Operators

write_dl_classifierwrite_dl_classifierWriteDlClassifierWriteDlClassifier (Operator)

Name

write_dl_classifierwrite_dl_classifierWriteDlClassifierWriteDlClassifier — Write a deep-learning-based classifier in a file.

Signature

write_dl_classifier( : : DLClassifierHandle, FileName : )

Herror write_dl_classifier(const Hlong DLClassifierHandle, const char* FileName)

Herror T_write_dl_classifier(const Htuple DLClassifierHandle, const Htuple FileName)

void WriteDlClassifier(const HTuple& DLClassifierHandle, const HTuple& FileName)

void HDlClassifier::WriteDlClassifier(const HString& FileName) const

void HDlClassifier::WriteDlClassifier(const char* FileName) const

static void HOperatorSet.WriteDlClassifier(HTuple DLClassifierHandle, HTuple fileName)

void HDlClassifier.WriteDlClassifier(string fileName)

Description

write_dl_classifierwrite_dl_classifierWriteDlClassifierWriteDlClassifierWriteDlClassifier writes the deep-learning-based classifier DLClassifierHandleDLClassifierHandleDLClassifierHandleDLClassifierHandleDLClassifierHandle to the file given by FileNameFileNameFileNameFileNamefileName.

write_dl_classifierwrite_dl_classifierWriteDlClassifierWriteDlClassifierWriteDlClassifier is typically called after the classifier has been trained with train_dl_classifier_batchtrain_dl_classifier_batchTrainDlClassifierBatchTrainDlClassifierBatchTrainDlClassifierBatch. The classifier can be read with read_dl_classifierread_dl_classifierReadDlClassifierReadDlClassifierReadDlClassifier.

Please note that the runtime specific parameter 'gpu'"gpu""gpu""gpu""gpu" of the classifier is not written.

The default HALCON file extension for deep learning classifiers is '.hdl'".hdl"".hdl"".hdl"".hdl".

For an explanation of the concept of deep-learning-based classification see the introduction of chapter Deep Learning / Classification.

Execution Information

Parameters

DLClassifierHandleDLClassifierHandleDLClassifierHandleDLClassifierHandleDLClassifierHandle (input_control)  dl_classifier HDlClassifier, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Handle of the deep-learning-based classifier.

FileNameFileNameFileNameFileNamefileName (input_control)  filename.read HTupleHTupleHtuple (string) (string) (HString) (char*)

File name.

File extension: .hdl

Result

If the parameters are valid, the operator write_dl_classifierwrite_dl_classifierWriteDlClassifierWriteDlClassifierWriteDlClassifier returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

read_dl_classifierread_dl_classifierReadDlClassifierReadDlClassifierReadDlClassifier, train_dl_classifier_batchtrain_dl_classifier_batchTrainDlClassifierBatchTrainDlClassifierBatchTrainDlClassifierBatch, set_dl_classifier_paramset_dl_classifier_paramSetDlClassifierParamSetDlClassifierParamSetDlClassifierParam

Module

Deep Learning Inference


ClassesClasses | | Operators