read_class_train_dataT_read_class_train_dataReadClassTrainDataReadClassTrainDataread_class_train_data (Operator)

Name

read_class_train_dataT_read_class_train_dataReadClassTrainDataReadClassTrainDataread_class_train_data — Read the training data for classifiers from a file.

Signature

read_class_train_data( : : FileName : ClassTrainDataHandle)

Herror T_read_class_train_data(const Htuple FileName, Htuple* ClassTrainDataHandle)

void ReadClassTrainData(const HTuple& FileName, HTuple* ClassTrainDataHandle)

void HClassTrainData::HClassTrainData(const HString& FileName)

void HClassTrainData::HClassTrainData(const char* FileName)

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

void HClassTrainData::ReadClassTrainData(const HString& FileName)

void HClassTrainData::ReadClassTrainData(const char* FileName)

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

static void HOperatorSet.ReadClassTrainData(HTuple fileName, out HTuple classTrainDataHandle)

public HClassTrainData(string fileName)

void HClassTrainData.ReadClassTrainData(string fileName)

def read_class_train_data(file_name: str) -> HHandle

Description

read_class_train_dataread_class_train_dataReadClassTrainDataReadClassTrainDataReadClassTrainDataread_class_train_data reads the saved training data for classifiers from the file FileNameFileNameFileNameFileNamefileNamefile_name (see write_class_train_datawrite_class_train_dataWriteClassTrainDataWriteClassTrainDataWriteClassTrainDatawrite_class_train_data). The default HALCON file extension for training data for a classifier is 'ctd'.

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

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

File name of the training data.

File extension: .ctd

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

Handle of the training data.

Result

read_class_train_dataread_class_train_dataReadClassTrainDataReadClassTrainDataReadClassTrainDataread_class_train_data returns TRUE. An exception is raised if it was not possible to open the file FileNameFileNameFileNameFileNamefileNamefile_name or the file has the wrong format.

See also

create_class_train_datacreate_class_train_dataCreateClassTrainDataCreateClassTrainDataCreateClassTrainDatacreate_class_train_data, write_class_train_datawrite_class_train_dataWriteClassTrainDataWriteClassTrainDataWriteClassTrainDatawrite_class_train_data

Module

Foundation