Halcon变化模板之variation_model_single.hdev

  • 在这个例子中,展示了如何应用差异检测的算子来检测打印质量
  • This example shows how to employ the new extensions of HALCON’s variation model operators
  • to perform customary print quality tests.
    *在这个例子中,差异模板用一张参考图像建立
  • In this example the variation model is built upon a single reference image.
    *本示例主要有3个步骤
    *1.用形状匹配让目标图像与参考图像对齐
    *2.定义差异图像,平滑图像轮廓
    *3.创建差异图像
  • The example consists of three steps:
    1. align the print objects similar to the reference image using a shape-based model
    1. define the variation image by smoothing the object’s contours
    1. create the variation model
      *打印条码是否ok,取决于与参考图像的面积或者差异
  • Whether a print is labelled as OK or not, depends upon the size (area) of the difference to the reference image

*关闭窗体
dev_close_window ()
*读取图像
read_image (Image, ‘pen/pen-01’)

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值