摘要
针对LED贴片机中元件的视觉定位问题,提出了一种基于矩形拟合的元件定位算法。利用大部分LED贴片灯珠为矩形的几何特征,首先根据背景灰度对采集图像进行全局阈值分割;然后以顶点为界将元件轮廓坐标分为四组并做等间隔采样;最后根据矩形相邻两边正交的特性对采样坐标进行矩形拟合实现元件定位的目的。实验表明,该方法具有较高的准确性和较强的鲁棒性,符合高精度贴片机的贴装要求。
In allusion to the problem of SMD LED visual positioning, an algorithm based on rectangle fitting is proposed. By exploiting the geometric feature that most SMD LED lamp beads are rectangular, firstly the global threshold segmentation is used to process the captured image according to its background grey scale. Then the con- tour coordinates of the target component are divided and equal interval sampled into four groups by vertexes. Finally the rectangle fitting algorithm bas6d on the orthogonality of adjacent sides of rectangle is used to position the target component. The simulation indicates that the algorithm has both high accuracy and strong robust, which has met the requirement of high-accuracy chip mounter.
出处
《科学技术与工程》
北大核心
2014年第21期271-274,279,共5页
Science Technology and Engineering
基金
浙江省自然科学基金项目(LY12F02018)资助