read_component_modelT_read_component_modelReadComponentModelReadComponentModelread_component_model (算子名称)
名称
read_component_modelT_read_component_modelReadComponentModelReadComponentModelread_component_model — Read a component model from a file.
参数签名
def read_component_model(file_name: str) -> HHandle
描述
该算子 read_component_modelread_component_modelReadComponentModelReadComponentModelReadComponentModelread_component_model reads a component model,
which has been written with write_component_modelwrite_component_modelWriteComponentModelWriteComponentModelWriteComponentModelwrite_component_model, from the
file FileNameFileNameFileNameFileNamefileNamefile_name and returns it in ComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelIDcomponent_model_id.
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.
参数表
FileNameFileNameFileNameFileNamefileNamefile_name (input_control) filename.read → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
File name.
File extension:
.cbm
ComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelIDcomponent_model_id (output_control) component_model → HComponentModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the component model.
结果
If the file name is valid, 该算子 read_component_modelread_component_modelReadComponentModelReadComponentModelReadComponentModelread_component_model
返回值 2 (
H_MSG_TRUE)
. 如有必要,将引发异常。
可能的后置算子
find_component_modelfind_component_modelFindComponentModelFindComponentModelFindComponentModelfind_component_model
模块
Matching