***********************识读(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, 144DataCodeHandle (output_control) datacode_2d →(integer)输出:使用和访问2维码模型的句柄。
4.find_data_code_2d(Image : SymbolXLDs : DataCodeHandle, GenParamNames, GenParamValues : ResultHandles, DecodedDataStrings)功能:Image (input_object) image →object (byte)输入图像SymbolXLDs (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, 3ResultHandles (output_control) integer(-array) →(integer)所有成功解码的2维码符号的句柄DecodedDataStrings (output_control) string(-array) →(string)所有成功解码的2维码字符串。
5:get_data_code_2d_objects( : DataCodeObjects : DataCodeHandle, CandidateHandle, ObjectName : )功能:Access iconic objects that were created during the search for 2D data code symbols.访问图标对象-------------这些对象已经在浏览条码符号的过程中。
参数:DataCodeObjects (output_object) object(-array) →objectObjects that are created as intermediate results during the detection or evaluation of 2D data codes.输出在条码查找和建立的过程中生成的对象。
DataCodeHandle (input_control) datacode_2d →(integer)2维码数据模型的句柄CandidateHandle (input_control) integer →(integer / string)所需图标的类型做为条件逻辑Default value: 'all_candidates'Suggested values: 0, 1, 2, 'all_candidates', 'all_results', 'all_undecoded', 'all_aborted'ObjectName (input_control) string →(string)输入图标对象的名称。
Default value: 'candidate_xld'List of values: 'module_1_rois', 'module_0_rois', 'candidate_xld', 'search_image', 'process_image':下列对象可以返回:Regions of the modules'module_1_rois':All modules that were classified as foreground (set).'module_0_rois':All modules that were classified as background (not set).These region arrays correspond to the areas that were used for the classification. The returned object is a region array. Hence it cannot be requested for a group of candidates. Therefore, a single result handle must be passed in CandidateHandle. The model persistence must be 1 for this object. In addition, requesting the module ROIs makes sense only for symbols that were detected as valid symbols. For other candidates, whose processing was aborted earlier, the module ROIs are not available.XLD contour'candidate_xld':An XLD contour that surrounds the candidate or decoded symbol.This object can be requested for any group of results or for any single candidate or symbol handle. The persistence setting is of no relevance.Pyramid images'search_image':Pyramid image, in which the candidate was found.'process_image':Pyramid image, in which the candidate was investigated more closely. ———————————————————————————6:get_data_code_2d_param( : : DataCodeHandle, GenParamNames : GenParamValues)功能:Get one or several parameters that describe the 2D data code model.取得一个或多个参数-----------和2D数据码模型相关参数:DataCodeHandle (input_control) datacode_2d →(integer)二维数据码模型句柄GenParamNames (input_control) (-array) →(string)Names of the generic parameters that are to be queried for the 2D data code model.获得数据码所需的参数的名称Default value: 'contrast_min'List of values: 'strict_model', 'persistence', 'polarity', 'mirrored', 'contrast_min', 'model_type', 'version_min', 'version_max', 'symbol_size_min', 'symbol_size_max', 'symbol_cols_min', 'symbol_cols_max', 'symbol_rows_min', 'symbol_rows_max', 'symbol_shape', 'module_size_min', 'module_size_max', 'module_width_min', 'module_width_max', 'small_modules_robustness', 'module_aspect_min', 'module_aspect_max', 'module_gap_col_min', 'module_gap_col_max', 'module_gap_row_min', 'module_gap_row_max', 'slant_max', 'module_grid', 'position_pattern_min', 'finder_pattern_tolerance'GenParamValues (output_control) attribute.value(-array) →(string / integer / real)参数的值。