set_data_code_2d_param(DataCodeHandleQR, ['module_size_min','module_size_max'], [12,40])*如果GenParamNames, GenParamValues不填,那么默认只找一个二维码,将'stop_after_result_num'设置为3指最多找3个*find_data_code_2d (Image2, SymbolXLDs, DataCodeHandleQR, [], [], ResultHandles, Decod...
二维码 二维码识别中,create_data_code_2d_model创建二维码模型,通过set_data_code_2d_param设置二维码参数,再通过find_data_code_2d查找二维码的内容,最后clear_data_code_2d_model清空数据模型,同样,在这里没有做图像预处理工偶,halcon通过set_data_code_2d_param参数,强大的算法就可以解码了。 总结一点,识别类应...
* Create the data code model and search * for the data code in the rectified image create_data_code_2d_model('Data Matrix ECC 200', [], [], DataCodeHandle) *寻找二维码轮廓与解析二维码数据 find_data_code_2d(Image_rectified, SymbolXLDs, DataCodeHandle, [], [], ResultHandles, DecodedDa...
*检测输入图像中的2D数据模型代码 find_data_code_2d (TransImage, SymbolXLDs, DataCodeHandle, [], [], ResultHandles, DecodedDataStrings) dev_display (Image) dev_display (TransImage) dev_display (SymbolXLDs) disp_message (WindowHandle, DecodedDataStrings, 'window', 12, 12, 'black', 'true')...
DataCodeHandle是该函数所创建模型的句柄,是输出控制变量。 1.2 解码 在建立了模型之后,使用如下解码函数,就可以在输入图像Image中进行解码了。 find_data_code_2d(Image : SymbolXLDs : DataCodeHandle, GenParamNames, GenParamValues : ResultHandles, DecodedDataStrings) ...
This value is used for results that refer to the last find_data_code_2d call in general but not to a specific candidate. 'all_candidates': All candidates (including the successfully decoded symbols) that were investigated during the last call of find_data_code_2d. 'all_results': All ...
'datacode/ecc200/ecc200_cpu_007') * train the model with the symbol in the image find_data_code_2d (Image, SymbolXLDs, DataCodeHandle, 'train', 'all', \ ResultHandles, DecodedDataStrings) * Request the current settings of the (now trained) model get_data_code_2d_param(DataCodeHandle...
create_bar_code_model([], [], BarCodeHandle)find_bar_code(GrayImage, SymbolRegions, BarCodeHandle, 'Code 128', DecodedDataStrings)这段代码首先创建一个空的条形码阅读器模板,然后在灰度图像中查找并定位条形码符号。通过指定'Code 128'码制,成功解码的条码数据字符串会被收集到DecodedDataStrings变量中。内...
find_data_code_2d(Image : SymbolXLDs : DataCodeHandle, GenParamNames, GenParamValues : ResultHandles, DecodedDataStrings) 其中,Image是输入的二维码图像。 SymbolXLDs是解码成功后找到并输出的二维码边缘。 DataCodeHandle是create_data_code_2d_model创建的二维码模型句柄。 GenParamNames是解码函数的属性名,默认...
1)find_bar_code() Image:待处理的图片SymbolRegions:成功解码的条码符号的区域BarCodeHandle:条码模型的句柄CodeType:条码类型auto(不清楚待检测的条码类型时)EAN-13Code 39...DecodedDataStrings:解码的数据字符串 2.4 获取 1)get_bar_code_result()(获取解读条形码标志时计算得到的结果)BarCodeHandle:条码模型的句...