识读条码和二维码
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
***********************识读(2维码)***************************************** 1.clear_all_data_code_2d_models( : : : )
功能:清除所有2D数据码模型
2.clear_data_code_2d_model( : : DataCodeHandle : )
功能:清除句柄参数所指定的2D数据码模型
参数:
DataCodeHandle (input_control) datacode_2d →(integer)
数码码模型句柄。———————————————————————————3.create_data_code_2d_model( : : SymbolType, GenParamNames, GenParamValues : DataCodeHandle)
功能:建立2D数据码类型的模型。
参数:
SymbolType (input_control) string →(string)
二维码的类型
Default value: 'Data Matrix ECC 200'
List of values: 'Data Matrix ECC 200', 'QR Code', 'PDF417'
GenParamNames (input_control) (-array) →(string)
被用于调整二维码模型的参数的名称。
Default value: []
List of values: 'default_parameters', 'strict_model', 'persistence', 'polarity', 'mirrored', 'contrast_min', 'model_type', 'version', 'version_min', 'version_max', 'symbol_size', 'symbol_size_min', 'symbol_size_max', 'symbol_cols', 'symbol_cols_min', 'symbol_cols_max', 'symbol_rows', 'symbol_rows_min', 'symbol_rows_max', 'symbol_shape', 'module_size', 'module_size_min', 'module_size_max', 'small_modules_robustness', 'module_width', 'module_width_min', 'module_width_max', 'module_aspect', 'module_aspect_min', 'module_aspect_max', 'module_gap', 'module_gap_min', 'module_gap_max', 'module_gap_col', 'module_gap_col_min', 'module_gap_col_max', 'module_gap_row', 'module_gap_row_min', 'module_gap_row_max', 'slant_max', 'module_grid', 'position_pattern_min', 'timeout', 'finder_pattern_tolerance'
GenParamValues (input_control) attribute.value(-array) →(string / integer / real)
被用于调整二维码模型的参数的值。
Default value: []
Suggested values: 'standard_recognition', 'enhanced_recognition', 'maximum_recognition', 'yes', 'no', 'any', 'dark_on_light', 'light_on_dark', 'square', 'rectangle', 'small', 'big', 'fixed', 'variable', 'low', 'high', 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 30, 50, 70, 90, 12, 14, 16, 18, 20, 22, 24, 26, 32, 36, 40, 44, 48, 52, 64, 72, 80, 88, 96, 104, 120, 132, 144
DataCodeHandle (output_control) datacode_2d →(integer)
输出:使用和访问2维码模型的句柄。
4.find_data_code_2d(Image : SymbolXLDs : DataCodeHandle, GenParamNames, GenParamValues : ResultHandles, DecodedDataStrings)
功能:
Image (input_object) image →object (byte)
输入图像
S
ymbolXLDs (output_object) xld_cont(-array) →object
成功解码的二维码位置的轮廓。
DataCodeHandle (input_control) datacode_2d →(integer)
访问所需的2维数据码句柄
GenParamNames (input_control) (-array) →(string)
Names of (optional) parameters for controlling the behavior of the operator.
控制和操作所用的参数属性名称
Default value: []
List of values: 'train', 'stop_after_result_num'
GenParamValues (input_control) attribute.value(-array) →(integer / real / string)
Values of the optional generic parameters.
参数值。
Default value: []
Suggested values: 'all', 'model_type', 'symbol_size', 'version', 'module_size', 'small_modules_robustness', 'module_shape', 'polarity', 'mirrored', 'contrast', 'module_grid', 'finder_pattern_tolerance', 'image_proc', 1, 2, 3
ResultHandles (output_control) integer(-array) →(integer)
所有成功解码的2维码符号的句柄
DecodedDataStrings (output_control) string(-array) →(string)
所有成功解码的2维码字符串。
5:get_data_code_2d_objects( : DataCodeObjects : DataCodeHandle, CandidateHandle, ObjectName : )