read_shape_modelT_read_shape_modelReadShapeModelReadShapeModelread_shape_model (算子)

名称

read_shape_modelT_read_shape_modelReadShapeModelReadShapeModelread_shape_model — 从文件中读取形状模型。

签名

read_shape_model( : : FileName : ModelID)

Herror T_read_shape_model(const Htuple FileName, Htuple* ModelID)

void ReadShapeModel(const HTuple& FileName, HTuple* ModelID)

void HShapeModel::HShapeModel(const HString& FileName)

void HShapeModel::HShapeModel(const char* FileName)

void HShapeModel::HShapeModel(const wchar_t* FileName)   ( Windows only)

void HShapeModel::ReadShapeModel(const HString& FileName)

void HShapeModel::ReadShapeModel(const char* FileName)

void HShapeModel::ReadShapeModel(const wchar_t* FileName)   ( Windows only)

static void HOperatorSet.ReadShapeModel(HTuple fileName, out HTuple modelID)

public HShapeModel(string fileName)

void HShapeModel.ReadShapeModel(string fileName)

def read_shape_model(file_name: str) -> HHandle

描述

算子 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'.

执行信息

此算子返回一个句柄。请注意,即使该句柄被用作特定算子的输入参数,这些算子仍可能改变此句柄类型的实例状态。

参数

FileNameFileNameFileNameFileNamefileNamefile_name (输入控制)  filename.read HTuplestrHTupleHtuple (string) (string) (HString) (char*)

File name.

File extension: .shm

ModelIDModelIDModelIDModelIDmodelIDmodel_id (输出控制)  shape_model HShapeModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the model.

结果

If the file name is valid, the operator read_shape_modelread_shape_modelReadShapeModelReadShapeModelReadShapeModelread_shape_model 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。

可能的后继

find_generic_shape_modelfind_generic_shape_modelFindGenericShapeModelFindGenericShapeModelFindGenericShapeModelfind_generic_shape_model

模块

匹配