read_component_model
— Read a component model from a file.
read_component_model
is obsolete and is only provided for
reasons of backward compatibility.
The operator will be removed with HALCON 26.11.
read_component_model( : : FileName : ComponentModelID)
The operator read_component_model
reads a component model,
which has been written with write_component_model
, from the
file FileName
and returns it in ComponentModelID
.
The default HALCON file extension for the component model is 'cbm'.
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.
FileName
(input_control) filename.read →
(string)
File name.
File extension:
.cbm
ComponentModelID
(output_control) component_model →
(handle)
Handle of the component model.
If the file name is valid, the operator read_component_model
returns the value 2 (
H_MSG_TRUE)
.
If necessary, an exception is raised.
Matching