*这个Demo演示了如何运用变化模板算子去检测打印质量。这个项目检测的是笔上的打印标签的缺陷。
*第一步,由好的图像创建模板。由于检测物体的位置会变化。其他所有图像都必须与参考图像对齐。
*具体步骤就是:1.用第一张图像建立形状匹配模板(因为算法要求由于检测的时候物体位置必须在一个位置)和训练差异模板
*检测的时候把检测图像变换到参考图像位置
- This example program shows how to use HALCON’s variation model operators
- to perform a typical print quality inspection. The program detects incorrect
- prints on the clips of pens. In the first step, the variation model is constructed
- from images of correct prints. Since the position of the objects can vary, the
- images must be transformed to a reference position (the position of the print
- in the first image in this example). HALCON’s shape-based matching is used
- to detect the position and angle of the print in the images. The found position
- and angle are used to transform the images to the reference position.
**项目第二部分,就是检测好的和有缺陷的的图像 - In the second part of the program, the prints of