Skip to content

read_class_mlpReadClassMlpReadClassMlpread_class_mlpT_read_class_mlp🔗

Short description🔗

read_class_mlpReadClassMlpReadClassMlpread_class_mlpT_read_class_mlp — Read a multilayer perceptron from a file.

Signature🔗

read_class_mlp( filename.read FileName, out class_mlp MLPHandle )void ReadClassMlp( const HTuple& FileName, HTuple* MLPHandle )static void HOperatorSet.ReadClassMlp( HTuple fileName, out HTuple MLPHandle )def read_class_mlp( file_name: str ) -> HHandle

Herror T_read_class_mlp( const Htuple FileName, Htuple* MLPHandle )

void HClassMlp::HClassMlp( const HString& FileName )

void HClassMlp::HClassMlp( const char* FileName )

void HClassMlp::HClassMlp( const wchar_t* FileName ) (Windows only)

public HClassMlp( string fileName )

void HClassMlp::ReadClassMlp( const HString& FileName )

void HClassMlp::ReadClassMlp( const char* FileName )

void HClassMlp::ReadClassMlp( const wchar_t* FileName ) (Windows only)

void HClassMlp.ReadClassMlp( string fileName )

Description🔗

read_class_mlpReadClassMlp reads a multilayer perceptron (MLP) that has been stored with write_class_mlpWriteClassMlp. 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_mlpWriteClassMlp. In the online process the MLP is read with read_class_mlpReadClassMlp and subsequently used for evaluation with evaluate_class_mlpEvaluateClassMlp or for classification with classify_class_mlpClassifyClassMlp. The default HALCON file extension for the MLP classifier is 'gmc'.

Execution information🔗

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🔗

FileNamefileNamefile_name (input_control) filename.read → (string)HTuple (HString)HTuple (string)strHtuple (char*)

File name.

File extension: .gmc

MLPHandleMLPHandlemlphandle (output_control) class_mlp → (handle)HTuple (HHandle)HClassMlp, HTuple (IntPtr)HHandleHtuple (handle)

MLP handle.

Result🔗

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

Combinations with other operators🔗

Combinations

Possible successors

classify_class_mlpClassifyClassMlp, evaluate_class_mlpEvaluateClassMlp, create_class_lut_mlpCreateClassLutMlp

Alternatives

read_dl_modelReadDlModel

See also

create_class_mlpCreateClassMlp, write_class_mlpWriteClassMlp

Module🔗

Foundation