create_bar_code_modelT_create_bar_code_modelCreateBarCodeModelCreateBarCodeModelcreate_bar_code_model (算子)
名称
create_bar_code_modelT_create_bar_code_modelCreateBarCodeModelCreateBarCodeModelcreate_bar_code_model — 创建条形码阅读器的模型。
签名
void CreateBarCodeModel(const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* BarCodeHandle)
void HBarCode::HBarCode(const HTuple& GenParamName, const HTuple& GenParamValue)
void HBarCode::HBarCode(const HString& GenParamName, double GenParamValue)
void HBarCode::HBarCode(const char* GenParamName, double GenParamValue)
void HBarCode::HBarCode(const wchar_t* GenParamName, double GenParamValue)
(
Windows only)
void HBarCode::CreateBarCodeModel(const HTuple& GenParamName, const HTuple& GenParamValue)
void HBarCode::CreateBarCodeModel(const HString& GenParamName, double GenParamValue)
void HBarCode::CreateBarCodeModel(const char* GenParamName, double GenParamValue)
void HBarCode::CreateBarCodeModel(const wchar_t* GenParamName, double GenParamValue)
(
Windows only)
描述
算子 create_bar_code_modelcreate_bar_code_modelCreateBarCodeModelCreateBarCodeModelCreateBarCodeModelcreate_bar_code_model creates a generic model for
reading all types of supported bar code symbols. The result of this operator
is a handle to the bar code model (BarCodeHandleBarCodeHandleBarCodeHandleBarCodeHandlebarCodeHandlebar_code_handle), which is used
for all further operations on the bar code, like modifying the model,
reading a symbol, or accessing the results of the symbol search.
In general, bar codes will be found and decoded without any additional
adjustment of the parameters. Therefore, GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name and
GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value are empty tuples by default. In the case of poor
image quality or abnormal geometric characteristics of the bar code,
which requires special parameter settings for a successful decoding of
the bar code symbols, parameters can be adjusted already while creating
the bar code model. Alternatively, parameters can be changed later on as
well by applying the operator set_bar_code_paramset_bar_code_paramSetBarCodeParamSetBarCodeParamSetBarCodeParamset_bar_code_param or
set_bar_code_param_specificset_bar_code_param_specificSetBarCodeParamSpecificSetBarCodeParamSpecificSetBarCodeParamSpecificset_bar_code_param_specific。For a detailed
description of the available model parameters see set_bar_code_paramset_bar_code_paramSetBarCodeParamSetBarCodeParamSetBarCodeParamset_bar_code_param。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
此算子返回一个句柄。请注意,即使该句柄被用作特定算子的输入参数,这些算子仍可能改变此句柄类型的实例状态。
参数
GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name (输入控制) attribute.name(-array) → HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Names of the generic parameters that can be
adjusted for the bar code model.
默认值:
[]
值列表:
'barcode_height_min'"barcode_height_min""barcode_height_min""barcode_height_min""barcode_height_min""barcode_height_min", 'barcode_width_max'"barcode_width_max""barcode_width_max""barcode_width_max""barcode_width_max""barcode_width_max", 'barcode_width_min'"barcode_width_min""barcode_width_min""barcode_width_min""barcode_width_min""barcode_width_min", 'check_char'"check_char""check_char""check_char""check_char""check_char", 'composite_code'"composite_code""composite_code""composite_code""composite_code""composite_code", 'element_size_max'"element_size_max""element_size_max""element_size_max""element_size_max""element_size_max", 'element_size_min'"element_size_min""element_size_min""element_size_min""element_size_min""element_size_min", 'element_size_variable'"element_size_variable""element_size_variable""element_size_variable""element_size_variable""element_size_variable", 'max_code_length'"max_code_length""max_code_length""max_code_length""max_code_length""max_code_length", 'meas_thresh'"meas_thresh""meas_thresh""meas_thresh""meas_thresh""meas_thresh", 'meas_thresh_abs'"meas_thresh_abs""meas_thresh_abs""meas_thresh_abs""meas_thresh_abs""meas_thresh_abs", 'min_code_length'"min_code_length""min_code_length""min_code_length""min_code_length""min_code_length", 'min_identical_scanlines'"min_identical_scanlines""min_identical_scanlines""min_identical_scanlines""min_identical_scanlines""min_identical_scanlines", 'num_scanlines'"num_scanlines""num_scanlines""num_scanlines""num_scanlines""num_scanlines", 'orientation'"orientation""orientation""orientation""orientation""orientation", 'orientation_tol'"orientation_tol""orientation_tol""orientation_tol""orientation_tol""orientation_tol", 'persistence'"persistence""persistence""persistence""persistence""persistence", 'quiet_zone'"quiet_zone""quiet_zone""quiet_zone""quiet_zone""quiet_zone", 'start_stop_tolerance'"start_stop_tolerance""start_stop_tolerance""start_stop_tolerance""start_stop_tolerance""start_stop_tolerance", 'stop_after_result_num'"stop_after_result_num""stop_after_result_num""stop_after_result_num""stop_after_result_num""stop_after_result_num", 'timeout'"timeout""timeout""timeout""timeout""timeout", 'train'"train""train""train""train""train", 'upce1_enable'"upce1_enable""upce1_enable""upce1_enable""upce1_enable""upce1_enable", 'upce_encodation'"upce_encodation""upce_encodation""upce_encodation""upce_encodation""upce_encodation"
GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value (输入控制) attribute.value(-array) → HTupleMaybeSequence[Union[float, int, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
Values of the generic parameters that can be
adjusted for the bar code model.
默认值:
[]
建议值:
0, 0.1, 1, 1.5, 2, 8, 32, 45, 'present'"present""present""present""present""present", 'absent'"absent""absent""absent""absent""absent", 'none'"none""none""none""none""none", 'CC-A/B'"CC-A/B""CC-A/B""CC-A/B""CC-A/B""CC-A/B", 'auto'"auto""auto""auto""auto""auto", 'high'"high""high""high""high""high", 'low'"low""low""low""low""low", 'true'"true""true""true""true""true", 'false'"false""false""false""false""false"
BarCodeHandleBarCodeHandleBarCodeHandleBarCodeHandlebarCodeHandlebar_code_handle (输出控制) barcode → HBarCode, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle for using and accessing the bar code model.
结果
算子 create_bar_code_modelcreate_bar_code_modelCreateBarCodeModelCreateBarCodeModelCreateBarCodeModelcreate_bar_code_model 在给定的参数正确时返回值 2 ( H_MSG_TRUE )。否则,将抛出异常。
可能的后继
find_bar_codefind_bar_codeFindBarCodeFindBarCodeFindBarCodefind_bar_code
另见
clear_bar_code_modelclear_bar_code_modelClearBarCodeModelClearBarCodeModelClearBarCodeModelclear_bar_code_model
参考文献
International Standard ISO/IEC 15420: “Information technology - Automatic
identification and data capture techniques -
Bar code symbology specification - EAN/UPC”;
Reference number ISO/IEC 15420:2000 (E);
ISO/IEC 2000.
International Standard ISO/IEC 16390: “Information technology - Automatic
identification and data capture techniques -
Bar code symbology specification - Interleaved 2 of 5”;
Reference number ISO/IEC 16390:1999 (E);
ISO/IEC 1999.
International Standard ISO/IEC 16388: “Information technology - Automatic
identification and data capture techniques -
Bar code symbology specification - Code 39”;
Reference number ISO/IEC 16388:1999 (E);
ISO/IEC 1999.
American National Standards Institute, Inc.(ANSI): “Uniform Symbology
Specification Code 93”;
ANSI/AIM-BC5-2000;
AIM 2000.
International Standard ISO/IEC 15417: “Information technology - Automatic
identification and data capture techniques -
Bar code symbology specification - Code 128”;
Reference number ISO/IEC 15417:2000 (E);
ISO/IEC 2000.
American National Standards Institute, Inc.(ANSI): “Uniform Symbology
Specification Codabar”;
ANSI/AIM-BC3-2000;
AIM 2000.
International Standard ISO/IEC 24724: “Information technology - Automatic
identification and data capture techniques -
Reduced Space Symbology (RSS) bar code symbology specification”;
Reference number ISO/IEC 24724:2006 (E);
ISO/IEC 2006.
International Standard ISO/IEC 24723: “Information technology - Automatic
identification and data capture techniques -
EAN.UCC Composite bar code symbology specification”;
Reference number ISO/IEC 24723:2006 (E);
ISO/IEC 2006.
模块
条形码