write_class_train_dataT_write_class_train_dataWriteClassTrainDataWriteClassTrainDatawrite_class_train_data (Operator)

Name

write_class_train_dataT_write_class_train_dataWriteClassTrainDataWriteClassTrainDatawrite_class_train_data — Save the training data for classifiers in a file.

Signature

write_class_train_data( : : ClassTrainDataHandle, FileName : )

Herror T_write_class_train_data(const Htuple ClassTrainDataHandle, const Htuple FileName)

void WriteClassTrainData(const HTuple& ClassTrainDataHandle, const HTuple& FileName)

void HClassTrainData::WriteClassTrainData(const HString& FileName) const

void HClassTrainData::WriteClassTrainData(const char* FileName) const

void HClassTrainData::WriteClassTrainData(const wchar_t* FileName) const   (Windows only)

static void HOperatorSet.WriteClassTrainData(HTuple classTrainDataHandle, HTuple fileName)

void HClassTrainData.WriteClassTrainData(string fileName)

def write_class_train_data(class_train_data_handle: HHandle, file_name: str) -> None

Description

write_class_train_datawrite_class_train_dataWriteClassTrainDataWriteClassTrainDataWriteClassTrainDatawrite_class_train_data writes the training data for classifiers ClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleclassTrainDataHandleclass_train_data_handle to the file given by FileNameFileNameFileNameFileNamefileNamefile_name. The classifier can be read again with read_class_train_dataread_class_train_dataReadClassTrainDataReadClassTrainDataReadClassTrainDataread_class_train_data. The default HALCON file extension for the training data is 'ctd'.

Execution Information

Parameters

ClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleClassTrainDataHandleclassTrainDataHandleclass_train_data_handle (input_control)  class_train_data HClassTrainData, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the training data.

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

Name of the file in which the training data will be written.

File extension: .ctd

Result

write_class_train_datawrite_class_train_dataWriteClassTrainDataWriteClassTrainDataWriteClassTrainDatawrite_class_train_data returns TRUE. An exception is raised if it was not possible to open file FileNameFileNameFileNameFileNamefileNamefile_name.

See also

create_class_train_datacreate_class_train_dataCreateClassTrainDataCreateClassTrainDataCreateClassTrainDatacreate_class_train_data, read_class_train_dataread_class_train_dataReadClassTrainDataReadClassTrainDataReadClassTrainDataread_class_train_data

Module

Foundation