read_deep_counting_modelT_read_deep_counting_modelReadDeepCountingModelReadDeepCountingModelread_deep_counting_model (算子名称)
名称
read_deep_counting_modelT_read_deep_counting_modelReadDeepCountingModelReadDeepCountingModelread_deep_counting_model — Read a Deep Counting model from a file.
参数签名
def read_deep_counting_model(file_name: str) -> HHandle
描述
该算子 read_deep_counting_modelread_deep_counting_modelReadDeepCountingModelReadDeepCountingModelReadDeepCountingModelread_deep_counting_model reads a Deep Counting model.
Such models have to be in the HALCON format.
As a result, the handle DeepCountingHandleDeepCountingHandleDeepCountingHandleDeepCountingHandledeepCountingHandledeep_counting_handle is returned.
The model is loaded from the file FileNameFileNameFileNameFileNamefileNamefile_name.
This file is thereby searched in the directory $HALCONROOT/dl/
as well as in the currently used directory.
The default HALCON file extension for Deep Counting models is
'.hdc'".hdc"".hdc"".hdc"".hdc"".hdc".
Please note that the values of runtime specific parameters are not written
to file, see write_deep_counting_modelwrite_deep_counting_modelWriteDeepCountingModelWriteDeepCountingModelWriteDeepCountingModelwrite_deep_counting_model.
As a consequence when reading a model these parameters are initialized with
their default value, see get_deep_counting_model_paramget_deep_counting_model_paramGetDeepCountingModelParamGetDeepCountingModelParamGetDeepCountingModelParamget_deep_counting_model_param.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
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*)
Filename
File extension:
.hdc
DeepCountingHandleDeepCountingHandleDeepCountingHandleDeepCountingHandledeepCountingHandledeep_counting_handle (output_control) deep_counting → HDlModelCounting, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the Deep Counting model.
结果
如果参数均有效,算子 read_deep_counting_modelread_deep_counting_modelReadDeepCountingModelReadDeepCountingModelReadDeepCountingModelread_deep_counting_model
返回值 2 (
H_MSG_TRUE)
. 如有必要,将引发异常。
可能的前置算子
create_deep_counting_modelcreate_deep_counting_modelCreateDeepCountingModelCreateDeepCountingModelCreateDeepCountingModelcreate_deep_counting_model
可能的后置算子
set_deep_counting_model_paramset_deep_counting_model_paramSetDeepCountingModelParamSetDeepCountingModelParamSetDeepCountingModelParamset_deep_counting_model_param,
get_deep_counting_model_paramget_deep_counting_model_paramGetDeepCountingModelParamGetDeepCountingModelParamGetDeepCountingModelParamget_deep_counting_model_param,
prepare_deep_counting_modelprepare_deep_counting_modelPrepareDeepCountingModelPrepareDeepCountingModelPrepareDeepCountingModelprepare_deep_counting_model,
apply_deep_counting_modelapply_deep_counting_modelApplyDeepCountingModelApplyDeepCountingModelApplyDeepCountingModelapply_deep_counting_model
可替代算子
create_deep_counting_modelcreate_deep_counting_modelCreateDeepCountingModelCreateDeepCountingModelCreateDeepCountingModelcreate_deep_counting_model
模块
Matching