write_training_componentsT_write_training_componentsWriteTrainingComponentsWriteTrainingComponentswrite_training_components (Operator)

Name

write_training_componentsT_write_training_componentsWriteTrainingComponentsWriteTrainingComponentswrite_training_components — Write a component training result to a file.

Signature

write_training_components( : : ComponentTrainingID, FileName : )

Herror T_write_training_components(const Htuple ComponentTrainingID, const Htuple FileName)

void WriteTrainingComponents(const HTuple& ComponentTrainingID, const HTuple& FileName)

void HComponentTraining::WriteTrainingComponents(const HString& FileName) const

void HComponentTraining::WriteTrainingComponents(const char* FileName) const

void HComponentTraining::WriteTrainingComponents(const wchar_t* FileName) const   (Windows only)

static void HOperatorSet.WriteTrainingComponents(HTuple componentTrainingID, HTuple fileName)

void HComponentTraining.WriteTrainingComponents(string fileName)

def write_training_components(component_training_id: HHandle, file_name: str) -> None

Description

The operator write_training_componentswrite_training_componentsWriteTrainingComponentsWriteTrainingComponentsWriteTrainingComponentswrite_training_components writes the component training result ComponentTrainingIDComponentTrainingIDComponentTrainingIDComponentTrainingIDcomponentTrainingIDcomponent_training_id to the file FileNameFileNameFileNameFileNamefileNamefile_name. The training result can be read again with read_training_componentsread_training_componentsReadTrainingComponentsReadTrainingComponentsReadTrainingComponentsread_training_components. The default HALCON file extension for the component training result is 'ct'.

Execution Information

Parameters

ComponentTrainingIDComponentTrainingIDComponentTrainingIDComponentTrainingIDcomponentTrainingIDcomponent_training_id (input_control)  component_training HComponentTraining, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the training result.

FileNameFileNameFileNameFileNamefileNamefile_name (input_control)  filename.write HTuplestrHTupleHtuple (string) (string) (HString) (char*)

File name.

File extension: .ct

Result

If the file name is valid (write permission), the operator write_training_componentswrite_training_componentsWriteTrainingComponentsWriteTrainingComponentsWriteTrainingComponentswrite_training_components returns the value TRUE. If necessary, an exception is raised.

Possible Predecessors

train_model_componentstrain_model_componentsTrainModelComponentsTrainModelComponentsTrainModelComponentstrain_model_components

Module

Matching