针对当前瓶底圆心定位方法精度不高、瓶底防滑纹区域缺陷易误检等问题,利用瓶底防滑纹的几何特征,提出一种改进的基于变权重随机圆拟合的瓶底定位算法,首先采用重心法对瓶底圆心进行快速预定位,再采用变权重随机圆拟合法实现瓶底精定位。然后检测瓶底图像疑似缺陷区域,并提取区域面积、轮廓长度、圆形度、灰度方差和灰度均值等特征,采用支持向量机算法进行分类决策,检测出缺陷。实验表明,瓶底定位误差小于6个像素,缺陷检测准确率为92.7%,基本满足实际生产精度的要求。
Aiming at the problem that the method of positioning the bottle bottom center is not accurate and the results for detecting the anti-skid grain areas of bottom are unreliable,by taking advantage of the geometric features of anti-skid grain areas on the bottom of the bottle,a localization algorithm based on variable weight random circle fitting the bottom is proposed in the paper. First,the bottom center is quickly pre-positioned by gravity method,then the random variable weight circle fitting method is used to realize the precise positioning. Finally,the suspected defect region of the bottle bottom image is detected,and area,contour length,average gray,gray variance and circularity are extracted,then the support vector machine is used for classification and the defect is detected. The experiment results show that the positioning error of this method is less than 6 pixels,and the detect accuracy is 92. 7%. It basically meets the actual production requirements.