ClassesClassesClassesClasses | | | | Operators

read_bar_code_modelread_bar_code_modelReadBarCodeModelread_bar_code_modelReadBarCodeModelReadBarCodeModel (Operator)

Name

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

Signature

read_bar_code_model( : : FileName : BarCodeHandle)

Herror read_bar_code_model(const char* FileName, Hlong* BarCodeHandle)

Herror T_read_bar_code_model(const Htuple FileName, Htuple* BarCodeHandle)

Herror read_bar_code_model(const HTuple& FileName, Hlong* BarCodeHandle)

void HBarCode::ReadBarCodeModel(const HTuple& FileName)

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

void HBarCode::HBarCode(const HString& FileName)

void HBarCode::HBarCode(const char* FileName)

void HBarCode::ReadBarCodeModel(const HString& FileName)

void HBarCode::ReadBarCodeModel(const char* FileName)

void HOperatorSetX.ReadBarCodeModel(
[in] VARIANT FileName, [out] VARIANT* BarCodeHandle)

void HBarCodeX.ReadBarCodeModel([in] BSTR FileName)

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

public HBarCode(string fileName)

void HBarCode.ReadBarCodeModel(string fileName)

Description

The operator read_bar_code_modelread_bar_code_modelReadBarCodeModelread_bar_code_modelReadBarCodeModelReadBarCodeModel reads the bar code model from the file FileNameFileNameFileNameFileNameFileNamefileName and creates a new model that is an identical copy of the saved model. The parameter BarCodeHandleBarCodeHandleBarCodeHandleBarCodeHandleBarCodeHandlebarCodeHandle returns the handle of the new model. The model file FileNameFileNameFileNameFileNameFileNamefileName must have been created by the operator write_bar_code_modelwrite_bar_code_modelWriteBarCodeModelwrite_bar_code_modelWriteBarCodeModelWriteBarCodeModel. The default HALCON file extension for bar code model is 'bcm'.

Parallelization

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.

Parameters

FileNameFileNameFileNameFileNameFileNamefileName (input_control)  filename.read HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Name of the bar code model file.

Default value: '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

BarCodeHandleBarCodeHandleBarCodeHandleBarCodeHandleBarCodeHandlebarCodeHandle (output_control)  barcode HBarCode, HTupleHTupleHBarCode, HTupleHBarCodeX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handle of the bar code model.

Result

The operator read_bar_code_modelread_bar_code_modelReadBarCodeModelread_bar_code_modelReadBarCodeModelReadBarCodeModel returns the value 2 (H_MSG_TRUE) if the named bar code file was found and correctly read. Otherwise, an exception is raised.

Possible Successors

find_bar_codefind_bar_codeFindBarCodefind_bar_codeFindBarCodeFindBarCode

Alternatives

create_bar_code_modelcreate_bar_code_modelCreateBarCodeModelcreate_bar_code_modelCreateBarCodeModelCreateBarCodeModel

See also

write_bar_code_modelwrite_bar_code_modelWriteBarCodeModelwrite_bar_code_modelWriteBarCodeModelWriteBarCodeModel, clear_bar_code_modelclear_bar_code_modelClearBarCodeModelclear_bar_code_modelClearBarCodeModelClearBarCodeModel

Module

Bar Code


ClassesClassesClassesClasses | | | | Operators