read_class_boxT_read_class_boxReadClassBoxReadClassBoxread_class_box (算子名称)

名称

read_class_boxT_read_class_boxReadClassBoxReadClassBoxread_class_box — Read a classifier from a file.

Warning

read_class_boxread_class_boxReadClassBoxReadClassBoxReadClassBoxread_class_box is obsolete and is only provided for reasons of backward compatibility. New applications should use the MLP, SVM, KNN or GMM operators instead.

参数签名

read_class_box( : : ClassifHandle, FileName : )

Herror T_read_class_box(const Htuple ClassifHandle, const Htuple FileName)

void ReadClassBox(const HTuple& ClassifHandle, const HTuple& FileName)

void HClassBox::ReadClassBox(const HString& FileName) const

void HClassBox::ReadClassBox(const char* FileName) const

void HClassBox::ReadClassBox(const wchar_t* FileName) const   ( Windows only)

static void HOperatorSet.ReadClassBox(HTuple classifHandle, HTuple fileName)

void HClassBox.ReadClassBox(string fileName)

def read_class_box(classif_handle: HHandle, file_name: str) -> None

描述

read_class_boxread_class_boxReadClassBoxReadClassBoxReadClassBoxread_class_box reads the saved classifier from the file FileNameFileNameFileNameFileNamefileNamefile_name (see write_class_boxwrite_class_boxWriteClassBoxWriteClassBoxWriteClassBoxwrite_class_box). The values of the current classifier are overwritten. The default HALCON file extension for the box classifier is 'gbc'.

注意

All values of the classifier are going to be overwritten.

运行信息

This operator modifies the state of the following input parameter:

During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.

参数表

ClassifHandleClassifHandleClassifHandleClassifHandleclassifHandleclassif_handle (input_control, state is modified)  class_box HClassBox, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the classifier.

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

Filename of the classifier.

File extension: .gbc

结果

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

可能的前置算子

create_class_boxcreate_class_boxCreateClassBoxCreateClassBoxCreateClassBoxcreate_class_box

可能的后置算子

test_sampset_boxtest_sampset_boxTestSampsetBoxTestSampsetBoxTestSampsetBoxtest_sampset_box, enquire_class_boxenquire_class_boxEnquireClassBoxEnquireClassBoxEnquireClassBoxenquire_class_box, write_class_boxwrite_class_boxWriteClassBoxWriteClassBoxWriteClassBoxwrite_class_box, close_class_boxclose_class_boxCloseClassBoxCloseClassBoxCloseClassBoxclose_class_box, clear_sampsetclear_sampsetClearSampsetClearSampsetClearSampsetclear_sampset

参考其它

create_class_boxcreate_class_boxCreateClassBoxCreateClassBoxCreateClassBoxcreate_class_box, write_class_boxwrite_class_boxWriteClassBoxWriteClassBoxWriteClassBoxwrite_class_box

模块

Foundation