read_class_svmT_read_class_svmReadClassSvmReadClassSvmread_class_svm (Operator)

Name

read_class_svmT_read_class_svmReadClassSvmReadClassSvmread_class_svm — Read a support vector machine from a file.

Signature

read_class_svm( : : FileName : SVMHandle)

Herror T_read_class_svm(const Htuple FileName, Htuple* SVMHandle)

void ReadClassSvm(const HTuple& FileName, HTuple* SVMHandle)

void HClassSvm::HClassSvm(const HString& FileName)

void HClassSvm::HClassSvm(const char* FileName)

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

void HClassSvm::ReadClassSvm(const HString& FileName)

void HClassSvm::ReadClassSvm(const char* FileName)

void HClassSvm::ReadClassSvm(const wchar_t* FileName)   (Windows only)

static void HOperatorSet.ReadClassSvm(HTuple fileName, out HTuple SVMHandle)

public HClassSvm(string fileName)

void HClassSvm.ReadClassSvm(string fileName)

def read_class_svm(file_name: str) -> HHandle

Description

read_class_svmread_class_svmReadClassSvmReadClassSvmReadClassSvmread_class_svm reads a support vector machine (SVM) that has been stored with write_class_svmwrite_class_svmWriteClassSvmWriteClassSvmWriteClassSvmwrite_class_svm. Since the training of an SVM can consume a relatively long time, the SVM is typically trained in an offline process and written to a file with write_class_svmwrite_class_svmWriteClassSvmWriteClassSvmWriteClassSvmwrite_class_svm. In the online process the SVM is read with read_class_svmread_class_svmReadClassSvmReadClassSvmReadClassSvmread_class_svm and subsequently used for classification with classify_class_svmclassify_class_svmClassifyClassSvmClassifyClassSvmClassifyClassSvmclassify_class_svm. The default HALCON file extension for the SVM classifier is 'gsc'.

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.

File extension: .gsc

SVMHandleSVMHandleSVMHandleSVMHandleSVMHandlesvmhandle (output_control)  class_svm HClassSvm, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

SVM handle.

Result

If the parameters are valid the operator read_class_svmread_class_svmReadClassSvmReadClassSvmReadClassSvmread_class_svm returns the value TRUE. If necessary, an exception is raised.

Possible Successors

classify_class_svmclassify_class_svmClassifyClassSvmClassifyClassSvmClassifyClassSvmclassify_class_svm, create_class_lut_svmcreate_class_lut_svmCreateClassLutSvmCreateClassLutSvmCreateClassLutSvmcreate_class_lut_svm

Alternatives

read_dl_classifierread_dl_classifierReadDlClassifierReadDlClassifierReadDlClassifierread_dl_classifier

See also

create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmCreateClassSvmcreate_class_svm, write_class_svmwrite_class_svmWriteClassSvmWriteClassSvmWriteClassSvmwrite_class_svm

Module

Foundation