1、读取图片ReadImage 2、创建相对应的条码类型的句柄CreateDataCode2dModel 3、设置条码参数SetDataCode2dParam 4、查找条码:输出条码信息FindDataCode2d 5、设置显示字体SetDisplayFont 6、显示条码信息DispMessage 7、清除条码句柄ClearDataCode2dModel ReadImage(srcImage,'DATA_MATRIX_HINT0.bmp') CreateDataCode2dMod...
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...
1)find_data_code_2d() Image:输入的图像 SymbolXLDs:被成功解码的二维码周边的XLD轮廓 DataCodeHandle:二维码模型句柄 GenParamName:可设置的通用参数的名称 stop_after_result_num:需要检测条码的最大数量 ... GenParamValue:可设置通用参数的设置值 ResultHandles:所有成功解码二维码句柄 DecodedDataStrings:解码的...
create_data_code_2d_model ('Data Matrix ECC 200', [], [], DataCodeHandle) *检测输入图像中的2D数据模型代码 find_data_code_2d (TransImage, SymbolXLDs, DataCodeHandle, [], [], ResultHandles, DecodedDataStrings) dev_display (Image) dev_display (TransImage) dev_display (SymbolXLDs) disp_...
二维码识别中,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_data_code_2d_model('Data Matrix ECC 200', [], [], DataCodeHandle) *寻找二维码轮廓与解析二维码数据 find_data_code_2d(Image_rectified, SymbolXLDs, DataCodeHandle, [], [], ResultHandles, DecodedDataStrings) * * Display result ...
find_bar_code (ImageRotate, SymbolRegions, BarCodeHandle, 'EAN-13', DecodedDataStrings) *显示条码区域 dev_display (SymbolRegions) *获取条码的方向:条码方向与图像水平轴之间的夹角 get_bar_code_result (BarCodeHandle, 'all', 'orientation', Orientation) ...
data from license server */ #define H_ERR_LIC_BADHOST 2045/* Cannot find SERVER hostname in network database */ #defineH_ERR_LIC_CANTWRITE 2047 /* Cannot write data to license server*/ #defineH_ERR_LIC_SERVLONGGONE 2051 /* License server does notsupport this ...
data from license server */ #define H_ERR_LIC_BADHOST 2045/* Cannot find SERVER hostname in network database */ #defineH_ERR_LIC_CANTWRITE 2047 /* Cannot write data to license server*/ #defineH_ERR_LIC_SERVLONGGONE 2051 /* License server does notsupport this ...
1)find_bar_code() Image:待处理的图片SymbolRegions:成功解码的条码符号的区域BarCodeHandle:条码模型的句柄CodeType:条码类型auto(不清楚待检测的条码类型时)EAN-13Code 39...DecodedDataStrings:解码的数据字符串 2.4 获取 1)get_bar_code_result()(获取解读条形码标志时计算得到的结果)BarCodeHandle:条码模型的句...