不规则多孔零件的通用匹配算法研究

Research on general matching algorithm for irregular multi-hole parts

  • 摘要: 汽车工业存在大量形状各异的带孔零件,针对不规则多孔零件的模板匹配,提出了一种基于特征三角形的快速模板匹配算法。利用面积特征和距离特征选取匹配孔,采用限定的最小二乘法圆拟合计算匹配孔的精准圆心构建特征三角形;根据三角形的旋转不变性和平移不变性,利用特征三角形提取匹配中心和匹配角进行仿射变换,实现零件的模板匹配和配准。实验结果表明,该模板匹配算法适用于不同孔数的零件,对零件变形的宽容度较高,且不易受匹配孔部分缺失、粘连等缺陷的影响,匹配速度快,可以达到工业零件缺陷检测的要求。

     

    Abstract: The automotive industry has a large number of multi-hole parts with different shapes. A template matching algorithm based on feature triangle has been proposed for template matching of multi-hole parts. The matching holes are selected by the area feature and the distance feature. The constrained least-squares fitting circles is used to calculate the precise center of the matching holes to construct the feature triangle. According to the rotation invariance and translation invariance of the triangle, use the feature triangle to extract the matching center and the matching angle for affine transformation to complete the template matching and registration of the part. Experimental results show that the template matching algorithm is suitable for parts with different hole numbers. The algorithm has high tolerance of the deformation of the parts, and is not easily affected by the defects such as partial missing and blocking of matching holes. The algorithm has a fast matching speed. It can meet the requirements of industrial parts defect detection.

     

/

返回文章
返回