read_class_gmmT_read_class_gmmReadClassGmmReadClassGmmread_class_gmm (算子)
名称
read_class_gmmT_read_class_gmmReadClassGmmReadClassGmmread_class_gmm — 从文件中读取高斯混合模型。
签名
def read_class_gmm(file_name: str) -> HHandle
描述
read_class_gmmread_class_gmmReadClassGmmReadClassGmmReadClassGmmread_class_gmm reads a Gaussian Mixture Model (GMM) that has
been stored with write_class_gmmwrite_class_gmmWriteClassGmmWriteClassGmmWriteClassGmmwrite_class_gmm。Since the training of an
GMM can consume a relatively long time, the GMM is typically trained
in an offline process and written to a file with
write_class_gmmwrite_class_gmmWriteClassGmmWriteClassGmmWriteClassGmmwrite_class_gmm。In the online process the GMM is read with
read_class_gmmread_class_gmmReadClassGmmReadClassGmmReadClassGmmread_class_gmm and subsequently used for evaluation with
evaluate_class_gmmevaluate_class_gmmEvaluateClassGmmEvaluateClassGmmEvaluateClassGmmevaluate_class_gmm or for classification with
classify_class_gmmclassify_class_gmmClassifyClassGmmClassifyClassGmmClassifyClassGmmclassify_class_gmm。The default HALCON file extension for the GMM classifier is 'ggc'.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
此算子返回一个句柄。请注意,即使该句柄被用作特定算子的输入参数,这些算子仍可能改变此句柄类型的实例状态。
参数
FileNameFileNameFileNameFileNamefileNamefile_name (输入控制) filename.read → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
File name.
File extension:
.ggc
GMMHandleGMMHandleGMMHandleGMMHandleGMMHandlegmmhandle (输出控制) class_gmm → HClassGmm, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
GMM 句柄。
结果
如果参数有效,算子 read_class_gmmread_class_gmmReadClassGmmReadClassGmmReadClassGmmread_class_gmm 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。
可能的后继
classify_class_gmmclassify_class_gmmClassifyClassGmmClassifyClassGmmClassifyClassGmmclassify_class_gmm,
evaluate_class_gmmevaluate_class_gmmEvaluateClassGmmEvaluateClassGmmEvaluateClassGmmevaluate_class_gmm,
create_class_lut_gmmcreate_class_lut_gmmCreateClassLutGmmCreateClassLutGmmCreateClassLutGmmcreate_class_lut_gmm
另见
create_class_gmmcreate_class_gmmCreateClassGmmCreateClassGmmCreateClassGmmcreate_class_gmm,
write_class_gmmwrite_class_gmmWriteClassGmmWriteClassGmmWriteClassGmmwrite_class_gmm
模块
基础