With the rapid development of surface mount technology, higher requirements are put forward for mark positioning technology based on machine vision. In this paper, a fast and high accuracy positioning algorithm for triangular ring mark is proposed. By using geometric features of convex hull and constructing the concept of deviation histogram, the negative factors which affect the positioning accuracy are eliminated from coarse to fine, such as arc corners, convex points, subtle bumps and burrs. Then, a high-quality data set for fitting sides of triangle ring is obtained. Finally, the fitted equations of each side of the mark are obtained through the linear fitting with the constraint of minimum distance, and the geometric center of the triangle ring mark is calculated to realize the high accuracy positioning. The proposed algorithm provides a state-of-the-art idea for linear marks positioning with high accuracy and fast speed requirement.
表 2 实拍图像实验结果Table 2 Experimental results of images taken by camera
表 1 仿真图像实验结果Table 1 Experimental results of simulation images
图1 工业相机拍摄的三角环标志符放大图像Fig.1 Enlarged images of triangle ring mark taken by industrial camera
图2 三角环标志符定位算法流程图Fig.2 Flowchart of triangle ring mark positioning algorithm
图3 凸包及凸点示意图Fig.3 Schematic diagram of convex hull and convex points
图4 三角环标志符的弧状顶角Fig.4 Arc corners of triangle ring mark
图5 三角环标志符上的凹凸和毛刺Fig.5 Bumps and burrs in triangle ring mark
图6 仿真实验图像示例Fig.6 Images used in simulation experiment
图7 实验环节展示Fig.7 Demonstration of experimental process
图8 实拍图像定位结果Fig.8 Positioning results of images taken by camera