read_bar_code_modelT_read_bar_code_modelReadBarCodeModelReadBarCodeModelread_bar_code_model (算子名称)

名称

read_bar_code_modelT_read_bar_code_modelReadBarCodeModelReadBarCodeModelread_bar_code_model — Read a bar code model from a file and create a new model.

参数签名

read_bar_code_model( : : FileName : BarCodeHandle)

Herror T_read_bar_code_model(const Htuple FileName, Htuple* BarCodeHandle)

void ReadBarCodeModel(const HTuple& FileName, HTuple* BarCodeHandle)

void HBarCode::HBarCode(const HString& FileName)

void HBarCode::HBarCode(const char* FileName)

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

void HBarCode::ReadBarCodeModel(const HString& FileName)

void HBarCode::ReadBarCodeModel(const char* FileName)

void HBarCode::ReadBarCodeModel(const wchar_t* FileName)   ( Windows only)

static void HOperatorSet.ReadBarCodeModel(HTuple fileName, out HTuple barCodeHandle)

public HBarCode(string fileName)

void HBarCode.ReadBarCodeModel(string fileName)

def read_bar_code_model(file_name: str) -> HHandle

描述

该算子 read_bar_code_modelread_bar_code_modelReadBarCodeModelReadBarCodeModelReadBarCodeModelread_bar_code_model reads the bar code model from the file FileNameFileNameFileNameFileNamefileNamefile_name and creates a new model that is an identical copy of the saved model. The parameter BarCodeHandleBarCodeHandleBarCodeHandleBarCodeHandlebarCodeHandlebar_code_handle returns the handle of the new model. The model file FileNameFileNameFileNameFileNamefileNamefile_name must have been created by 该算子 write_bar_code_modelwrite_bar_code_modelWriteBarCodeModelWriteBarCodeModelWriteBarCodeModelwrite_bar_code_model. The default HALCON file extension for bar code model is 'bcm'.

运行信息

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*)

Name of the bar code model file.

Default: 'bar_code_model.bcm' "bar_code_model.bcm" "bar_code_model.bcm" "bar_code_model.bcm" "bar_code_model.bcm" "bar_code_model.bcm"

File extension: .bcm

BarCodeHandleBarCodeHandleBarCodeHandleBarCodeHandlebarCodeHandlebar_code_handle (output_control)  barcode HBarCode, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the bar code model.

结果

该算子 read_bar_code_modelread_bar_code_modelReadBarCodeModelReadBarCodeModelReadBarCodeModelread_bar_code_model 返回值 2 ( H_MSG_TRUE) if the named bar code file was found and correctly read. Otherwise, an exception is raised.

可能的后置算子

find_bar_codefind_bar_codeFindBarCodeFindBarCodeFindBarCodefind_bar_code

可替代算子

create_bar_code_modelcreate_bar_code_modelCreateBarCodeModelCreateBarCodeModelCreateBarCodeModelcreate_bar_code_model

参考其它

write_bar_code_modelwrite_bar_code_modelWriteBarCodeModelWriteBarCodeModelWriteBarCodeModelwrite_bar_code_model, clear_bar_code_modelclear_bar_code_modelClearBarCodeModelClearBarCodeModelClearBarCodeModelclear_bar_code_model

模块

Bar Code