read_shape_modelT_read_shape_modelReadShapeModelReadShapeModelread_shape_model (Operator)
Name
read_shape_modelT_read_shape_modelReadShapeModelReadShapeModelread_shape_model
— Read a shape model from a file.
Signature
def read_shape_model(file_name: str) -> HHandle
Description
The operator read_shape_modelread_shape_modelReadShapeModelReadShapeModelReadShapeModelread_shape_model
reads a shape model, which has
been written with write_shape_modelwrite_shape_modelWriteShapeModelWriteShapeModelWriteShapeModelwrite_shape_model
, from the file
FileNameFileNameFileNameFileNamefileNamefile_name
. The default HALCON file extension for
the shape model is 'shm'.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
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.
Parameters
FileNameFileNameFileNameFileNamefileNamefile_name
(input_control) filename.read →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
File name.
File extension: .shm
ModelIDModelIDModelIDModelIDmodelIDmodel_id
(output_control) shape_model →
HShapeModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the model.
Result
If the file name is valid, the operator read_shape_modelread_shape_modelReadShapeModelReadShapeModelReadShapeModelread_shape_model
returns the value TRUE. If necessary an exception is raised.
Possible Successors
find_shape_modelfind_shape_modelFindShapeModelFindShapeModelFindShapeModelfind_shape_model
,
find_scaled_shape_modelfind_scaled_shape_modelFindScaledShapeModelFindScaledShapeModelFindScaledShapeModelfind_scaled_shape_model
,
find_aniso_shape_modelfind_aniso_shape_modelFindAnisoShapeModelFindAnisoShapeModelFindAnisoShapeModelfind_aniso_shape_model
,
find_shape_modelsfind_shape_modelsFindShapeModelsFindShapeModelsFindShapeModelsfind_shape_models
,
find_scaled_shape_modelsfind_scaled_shape_modelsFindScaledShapeModelsFindScaledShapeModelsFindScaledShapeModelsfind_scaled_shape_models
,
find_aniso_shape_modelsfind_aniso_shape_modelsFindAnisoShapeModelsFindAnisoShapeModelsFindAnisoShapeModelsfind_aniso_shape_models
,
get_shape_model_clutterget_shape_model_clutterGetShapeModelClutterGetShapeModelClutterGetShapeModelClutterget_shape_model_clutter
See also
create_shape_modelcreate_shape_modelCreateShapeModelCreateShapeModelCreateShapeModelcreate_shape_model
,
create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModelCreateScaledShapeModelcreate_scaled_shape_model
,
create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModelCreateAnisoShapeModelcreate_aniso_shape_model
,
clear_shape_modelclear_shape_modelClearShapeModelClearShapeModelClearShapeModelclear_shape_model
Module
Matching