Operator Reference
write_class_box (Operator)
write_class_box
— Save a classifier in a file.
Warning
write_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. The operator will be removed with
HALCON 25.11.
Signature
write_class_box( : : ClassifHandle, FileName : )
Description
write_class_box
writes the classifier ClassifHandle
to the file given by FileName
. The classifier can be read with
read_class_box
.
The default HALCON file extension for the box classifier is 'gbc'.
Attention
If a file with this name exists, it is overwritten without a warning. The file can not be edited.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
ClassifHandle
(input_control) class_box →
(handle)
Handle of the classifier.
FileName
(input_control) filename.write →
(string)
Name of the file which contains the written data.
File extension:
.gbc
Result
write_class_box
returns 2 (
H_MSG_TRUE)
.
An exception is raised if it was not possible to open file
FileName
.
Possible Predecessors
create_class_box
,
enquire_class_box
,
learn_class_box
,
test_sampset_box
Possible Successors
close_class_box
,
clear_sampset
See also
create_class_box
,
read_class_box
Module
Foundation