Skip to content

read_class_train_dataReadClassTrainDataReadClassTrainDataread_class_train_dataT_read_class_train_data🔗

Short description🔗

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

Signature🔗

read_class_train_data( filename.read FileName, out class_train_data ClassTrainDataHandle )void ReadClassTrainData( const HTuple& FileName, HTuple* ClassTrainDataHandle )static void HOperatorSet.ReadClassTrainData( HTuple fileName, out HTuple classTrainDataHandle )def read_class_train_data( file_name: str ) -> HHandle

Herror T_read_class_train_data( 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)

public HClassTrainData( string fileName )

void HClassTrainData::ReadClassTrainData( const HString& FileName )

void HClassTrainData::ReadClassTrainData( const char* FileName )

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

void HClassTrainData.ReadClassTrainData( string fileName )

Description🔗

read_class_train_dataReadClassTrainData reads the saved training data for classifiers from the file FileNamefileNamefile_name (see write_class_train_dataWriteClassTrainData). The default HALCON file extension for training data for a classifier is 'ctd'.

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 of the training data.

File extension: .ctd

ClassTrainDataHandleclassTrainDataHandleclass_train_data_handle (output_control) class_train_data → (handle)HTuple (HHandle)HClassTrainData, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the training data.

Result🔗

read_class_train_dataReadClassTrainData returns 2 (H_MSG_TRUE). An exception is raised if it was not possible to open the file FileNamefileNamefile_name or the file has the wrong format.

Combinations with other operators🔗

Combinations

See also

create_class_train_dataCreateClassTrainData, write_class_train_dataWriteClassTrainData

Module🔗

Foundation