read_class_box — Read a classifier from a file.
read_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 reads the saved classifier from the file FileName (see write_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:
Handle of the classifier.
Filename of the classifier.
File extension: .gbc
read_class_box returns 2 (H_MSG_TRUE). An exception is raised if it was not possible to open file FileName or the file has the wrong format.
test_sampset_box, enquire_class_box, write_class_box, close_class_box, clear_sampset