基于极限学习机的玻璃瓶口缺陷检测方法研究
2017-01-11黎牧星黄志鸿
黎牧星 黄志鸿
摘要:针对目前玻璃空瓶回收再生产过程中造成瓶口缺陷破损的在线实时检测难题,提出一种基于极限学习机(Extreme Learning Machine, ELM)的检测算法。首先对采集的瓶口进行预处理,通过研究表面缺陷,提取灰度方差等6种表面特征。然后运用遗传算法对极限学习机的输入层层的阈值和权值进行优化,提高算法的检测精度。最后现场选取569个样本对所设计ELM分类器进行训练学习与测试,并与LVQ算法、BP分类器对比实验。结果表明该算法能够满足对机器视觉检测系统缺陷检测高速高精度的要求。
关键词:缺陷检测;机器视觉;特征提取;极限学习机
中图分类号:TP391.4文献标识码:A
Abstract:A novel defect detection method based on Extreme Learning Machine was proposed for beer bottle mouth, which tackles with the problem of beer online realtime defect detection in recycling and reproduction process. The proposed method consists of the following steps. First, the bottle mouth is preprocessed by researching on the characteristics of surface defect bottle mouth, which extracts six kinds of surface features such as gray scale variance. Then, to improve the detection accuracy, we optimize Extreme Learning Machine (ELM) input and output layers of threshold and weight by using genetic algorithm. Finally, 569 samples from experimental test platform are selected to design the ELM classifier, and experimental results are compared with LVQ algorithm and BP algorithm. Experimental results show that the proposed ELM based classifier is able to obtain much higher speed and higher detection accuracy, which can meet the requirements of the production enterprise for machine vision system.
Key words:defect detection; machine vision; feature extraction; extreme learning machine
1引言
质检行业面临劳动力供给不足和劳动力成本上升的压力,采用自动化视觉机器代替人工操作岗位,是解决制造业用工问题的最有效途径。机器视觉检测已在集成电路质检、医药灌装、电力线路巡检等方面取得广泛的应用[ 1-4],采用机器视觉检测代替人工检测。
2图像采集预处理
空瓶检测机器人是基于机器视觉检测、光机电一体化、图像处理和软件编程技术设计的智能化装备,由多个CCD相机、专用LED光源、空瓶传送系统、次瓶分拣装置和检测控制系统组成。图1为啤酒瓶视觉检测系统。
采用低角度环形LED光源的,所发出的光线照射在瓶口上,瓶口反射的光线进入相机[6,7],相机从该光源的孔中对瓶口进行拍照来获得瓶口的图像。
受外界环境因素的干扰,采集的瓶口图像存在噪声需要对图像进行预处理以突出瓶口表面特征[8],同时抑制目标图像中的噪声。……
