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、读取图片ReadImage 2、创建相对应的条码类型的句柄CreateDataCode2dModel 3、设置条码参数SetDataCode2dParam 4、查找条码:输出条码信息FindDataCode2d 5、设置显示字体SetDisplayFont 6、显示条码信息DispMessage 7、清除条码句柄ClearDataCode2dModel ReadImage(srcImage,'DATA_MATRIX_HINT0.bmp') CreateDataCode2dMod...
to the symbols in the images also for runtime reasons. In general, the runtime offind_data_code_2dis higher for a more general model than for a more specific model. One should take into account that a general model leads to a high runtime especially ifnovalid data code can be found....
find_data_code_2d— Detect and read 2D data code symbols in an image or train the 2D data code model. Signature Description The operatorfind_data_code_2ddetects 2D data code symbols in the input image (Image) and reads the data that is encoded in the symbol. Before callingfind_data_code...
二维码识别中,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参数,强大的算法就可以解码了。 总结一点,识别类应用主要是...
find_data_code_2d (Image2, SymbolXLDs, DataCodeHandle, 'stop_after_result_num', 3, ResultHandles, DecodedDataStrings) 5、如果对于质量很差的二维码,可以模拟日常手机扫码时的操作,即多次改变曝光,多次解码的方式,参考文章: https://www.cnblogs.com/xh6300/p/9809692.html ...
find_data_code_2d (Image, SymbolXLDs, DataCodeHandle, [], [], ResultHandles, DecodedDataStrings) *清除模型 clear_data_code_2d_model (DataCodeHandle) 1. 2. 3. 4. 5. 6. 7. 8. 运行: 代码导出 在Halcon编辑器的菜单栏依次选择 “文件 — 导出”; ...
算子:create_data_code_2d_model( : : , , : ) 示例:create_data_code_2d_model ('QR Code', [], [], DataCodeHandle) 'QR Code'(输入参数):输入二维码类型 DataCodeHandle(输出参数):输出二维码句柄 搜索二 维码,并解码 find_data_code_2d 算子:find_data_code_2d( : : , , : , ) 示例:...
1 clear_all_data_code_2d_models() 清除所有的二维数据模型并释放它们分配的存储空间。 2 clear_data_code_2d_model() 清除一个二维数据模型并释放它分配的存储空间。 3 create_data_code_2d_model() 创建一个二维数据编码类的模式。 4 find_data_code_2d() 检测和读取一副图像或测试的二维数据编码模式中...
二维条码/二维码(2-dimensional bar code)是用某种特定的几何图形按一定规律在平面(二维方向上)分布的、黑白相间的、记录数据符号信息的图形;在代码编制上巧妙地利用构成计算机内部逻辑基础的“0”、“1”比特流的概念,使用若干个与二进制相对应的几何形体来表示文字数值信息,通过图象输入设备或光电...