首页|期刊导航|现代电子技术|基于改进Snake算法的圆孔类零件测量方法

基于改进Snake算法的圆孔类零件测量方法OA

Circular hole parts measurement method based on improved Snake algorithm

中文摘要英文摘要

当前机器视觉在尺寸测量方面仍面临精度不足的问题,难以满足高精度测量的需求.为提升视觉检测精度,文中提出一种融合多阶段边缘增强机制的Snake模型优化方法.首先,对Canny算子在噪声抑制、多方向梯度特征计算和阈值分割方面进行优化,提取轮廓的边缘点集,实现圆孔轮廓位置的初步定位;然后,改进Snake算法初始曲线设置,进一步细化圆孔所在目标区域边缘,通过融合RANSAC算法对优化后的边缘点进行筛选,去除异常点;最后,利用最小二乘法进一步精确拟合圆的圆心和半径,从而实现圆孔高精度的检测与测量.实验结果表明,该系统能满足0.02 mm级精度的工件测量,测量精度明显高于传统的Snake算法,能够满足工业中较高精度的圆孔类零件检测需求.

At present,machine vision still faces unsatisfied accuracy in dimensional measurement,so it is difficult to meet the needs of high-precision measurement.In view of this,the study proposed a Snake model optimization method integrating the multi-stage edge enhancement mechanism to improve the visual detection accuracy.The Canny operator is optimized in the aspects of noise suppression,multi-directional gradient feature calculation and threshold segmentation,the edge point set of contour is extracted,and the initial positioning of circular hole contour position is realized.The initial curve setting of the Snake algorithm is improved to further refine the edge of the target area where the circular hole is located.The optimized edge points are screened by integrating the RANSAC(random sample consensus)algorithm,so that the abnormal points are removed.Finally,the center and radius of the circle are further fitted accurately by the least square method,so as to realize the high-precision detection and measurement of the circular hole.The experiments show that the system can measure the workpiece with a precision of 0.02 mm,and the measurement accuracy is significantly higher than that of the traditional Snake algorithm,so the proposed algorithm can meet the detection requirements of industrial high-precision circular hole parts.

朱达荣;陈书磊;李致金

安徽建筑大学 电子与信息工程学院,安徽 合肥 230601安徽建筑大学 电子与信息工程学院,安徽 合肥 230601南京信息工程大学 人工智能学院,江苏 南京 210044

信息技术与安全科学

Snake算法Canny算子梯度幅值RANSAC算法最小二乘法圆孔类零件

Snake algorithmCanny operatorgradient amplitudeRANSAC algorithmleast square methodcircular hole parts

《现代电子技术》 2026 (9)

148-155,8

国家自然科学基金委员会面上项目(61771248)

10.16652/j.issn.1004-373x.2026.09.022

评论