ClassesClasses | | Operators

read_training_componentsread_training_componentsReadTrainingComponentsReadTrainingComponents (Operator)

Name

read_training_componentsread_training_componentsReadTrainingComponentsReadTrainingComponents — Read a component training result from a file.

Signature

read_training_components( : : FileName : ComponentTrainingID)

Herror read_training_components(const char* FileName, Hlong* ComponentTrainingID)

Herror T_read_training_components(const Htuple FileName, Htuple* ComponentTrainingID)

void ReadTrainingComponents(const HTuple& FileName, HTuple* ComponentTrainingID)

void HComponentTraining::ReadTrainingComponents(const HString& FileName)

void HComponentTraining::ReadTrainingComponents(const char* FileName)

static void HOperatorSet.ReadTrainingComponents(HTuple fileName, out HTuple componentTrainingID)

void HComponentTraining.ReadTrainingComponents(string fileName)

Description

The operator read_training_componentsread_training_componentsReadTrainingComponentsReadTrainingComponentsReadTrainingComponents reads a component training result, which has been written with write_training_componentswrite_training_componentsWriteTrainingComponentsWriteTrainingComponentsWriteTrainingComponents, from the file FileNameFileNameFileNameFileNamefileName and returns it in ComponentTrainingIDComponentTrainingIDComponentTrainingIDComponentTrainingIDcomponentTrainingID. The default HALCON file extension for the component training result is 'ct'.

Execution Information

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

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

File name.

File extension: .ct

ComponentTrainingIDComponentTrainingIDComponentTrainingIDComponentTrainingIDcomponentTrainingID (output_control)  component_training HComponentTraining, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Handle of the training result.

Result

If the file name is valid, the operator read_training_componentsread_training_componentsReadTrainingComponentsReadTrainingComponentsReadTrainingComponents returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Successors

create_trained_component_modelcreate_trained_component_modelCreateTrainedComponentModelCreateTrainedComponentModelCreateTrainedComponentModel

See also

train_model_componentstrain_model_componentsTrainModelComponentsTrainModelComponentsTrainModelComponents, clear_training_componentsclear_training_componentsClearTrainingComponentsClearTrainingComponentsClearTrainingComponents

Module

Matching


ClassesClasses | | Operators