read_class_mlpT_read_class_mlpReadClassMlpReadClassMlpread_class_mlp (Operator)
Name
read_class_mlpT_read_class_mlpReadClassMlpReadClassMlpread_class_mlp
— Read a multilayer perceptron from a file.
Signature
def read_class_mlp(file_name: str) -> HHandle
Description
read_class_mlpread_class_mlpReadClassMlpReadClassMlpReadClassMlpread_class_mlp
reads a multilayer perceptron (MLP) that has
been stored with write_class_mlpwrite_class_mlpWriteClassMlpWriteClassMlpWriteClassMlpwrite_class_mlp
. Since the training of an
MLP can consume a relatively long time, the MLP is typically trained
in an offline process and written to a file with
write_class_mlpwrite_class_mlpWriteClassMlpWriteClassMlpWriteClassMlpwrite_class_mlp
. In the online process the MLP is read with
read_class_mlpread_class_mlpReadClassMlpReadClassMlpReadClassMlpread_class_mlp
and subsequently used for evaluation with
evaluate_class_mlpevaluate_class_mlpEvaluateClassMlpEvaluateClassMlpEvaluateClassMlpevaluate_class_mlp
or for classification with
classify_class_mlpclassify_class_mlpClassifyClassMlpClassifyClassMlpClassifyClassMlpclassify_class_mlp
.
The default HALCON file extension for the MLP classifier is 'gmc'.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
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.
Parameters
FileNameFileNameFileNameFileNamefileNamefile_name
(input_control) filename.read →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
File name.
File extension: .gmc
MLPHandleMLPHandleMLPHandleMLPHandleMLPHandlemlphandle
(output_control) class_mlp →
HClassMlp, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
MLP handle.
Result
If the parameters are valid, the operator read_class_mlpread_class_mlpReadClassMlpReadClassMlpReadClassMlpread_class_mlp
returns the value TRUE. If necessary, an exception is
raised.
Possible Successors
classify_class_mlpclassify_class_mlpClassifyClassMlpClassifyClassMlpClassifyClassMlpclassify_class_mlp
,
evaluate_class_mlpevaluate_class_mlpEvaluateClassMlpEvaluateClassMlpEvaluateClassMlpevaluate_class_mlp
,
create_class_lut_mlpcreate_class_lut_mlpCreateClassLutMlpCreateClassLutMlpCreateClassLutMlpcreate_class_lut_mlp
Alternatives
read_dl_classifierread_dl_classifierReadDlClassifierReadDlClassifierReadDlClassifierread_dl_classifier
See also
create_class_mlpcreate_class_mlpCreateClassMlpCreateClassMlpCreateClassMlpcreate_class_mlp
,
write_class_mlpwrite_class_mlpWriteClassMlpWriteClassMlpWriteClassMlpwrite_class_mlp
Module
Foundation