write_class_svmT_write_class_svmWriteClassSvmWriteClassSvmwrite_class_svm (Operator)

Name

write_class_svmT_write_class_svmWriteClassSvmWriteClassSvmwrite_class_svm — Write a support vector machine to a file.

Signature

write_class_svm( : : SVMHandle, FileName : )

Herror T_write_class_svm(const Htuple SVMHandle, const Htuple FileName)

void WriteClassSvm(const HTuple& SVMHandle, const HTuple& FileName)

void HClassSvm::WriteClassSvm(const HString& FileName) const

void HClassSvm::WriteClassSvm(const char* FileName) const

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

static void HOperatorSet.WriteClassSvm(HTuple SVMHandle, HTuple fileName)

void HClassSvm.WriteClassSvm(string fileName)

def write_class_svm(svmhandle: HHandle, file_name: str) -> None

Description

write_class_svmwrite_class_svmWriteClassSvmWriteClassSvmwrite_class_svm writes the support vector machine (SVM) SVMHandleSVMHandleSVMHandleSVMHandlesvmhandle to the file given by FileNameFileNameFileNamefileNamefile_name. The default HALCON file extension for the SVM classifier is 'gsc'. write_class_svmwrite_class_svmWriteClassSvmWriteClassSvmwrite_class_svm is typically called after the SVM has been trained with train_class_svmtrain_class_svmTrainClassSvmTrainClassSvmtrain_class_svm. The SVM can be read with read_class_svmread_class_svmReadClassSvmReadClassSvmread_class_svm. write_class_svmwrite_class_svmWriteClassSvmWriteClassSvmwrite_class_svm does not write any training samples that possibly have been stored in the SVM. For this purpose, write_samples_class_svmwrite_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmwrite_samples_class_svm should be used.

Execution Information

Parameters

SVMHandleSVMHandleSVMHandleSVMHandlesvmhandle (input_control)  class_svm HClassSvm, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

SVM handle.

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

File name.

File extension: .gsc

Result

If the parameters are valid the operator write_class_svmwrite_class_svmWriteClassSvmWriteClassSvmwrite_class_svm returns the value 2 ( H_MSG_TRUE) . If necessary, an exception is raised.

Possible Predecessors

train_class_svmtrain_class_svmTrainClassSvmTrainClassSvmtrain_class_svm

Possible Successors

clear_class_svmclear_class_svmClearClassSvmClearClassSvmclear_class_svm

See also

create_class_svmcreate_class_svmCreateClassSvmCreateClassSvmcreate_class_svm, read_class_svmread_class_svmReadClassSvmReadClassSvmread_class_svm, write_samples_class_svmwrite_samples_class_svmWriteSamplesClassSvmWriteSamplesClassSvmwrite_samples_class_svm

Module

Foundation