The invention discloses a multi-parameter evaluation method for external threads based on machine vision and virtual instrument. The method steps are as follows: obtaining the edge of external threads by image processing, using LabVIEW programming to extract the top and bottom points of characteristic points, fitting the top points of external threads with least squares L1 and l4, fitting the bottom points with least squares L2 and l3, and fitting the top points to the opposite edges. The distance between the base of teeth and the fitting line on the opposite side is equal to the diameter of the outer thread. The distance between the center line K1 and L2 and the center line K2 of the two lines K1 and L3 and L4 is equal to the diameter of the outer thread. The distance between the center line K1 and the side line can be obtained by calculating the distance between the center line and the tooth line. The invention has the advantages of friendly interface, visualization, easy expansion, high efficiency and high accuracy.
【技术实现步骤摘要】
一种基于机器视觉和虚拟仪器的外螺纹多参数评定方法
本专利技术涉及螺纹多参数评定方法的
,特别是涉及一种基于机器视觉和虚拟仪器的外螺纹多参数评定方法。
技术介绍
传统的外螺纹参数检验方法是接触式检测,这种检测方法耗时,检测参数单一,为了克服上述缺点,将虚拟仪器技术、图像处理技术与机器视觉技术相结合,以LabVIEW软件为开发平台,对外螺纹多参数进行检测,提高检测效率及检测精度,具有实际应用价值。
技术实现思路
为了解决上述技术问题,本专利技术提供了一种基于机器视觉和虚拟仪器的外螺纹多参数评定方法。该评定方法界面友好,可视化、易扩展、效率高、精度高,可对采集图像及图像处理的数据进行自动保存、回放和螺距多参数可视化评定。本专利技术采用如下技术方案:一种基于机器视觉和虚拟仪器的外螺纹多参数评定方法,其特征在于方法步骤如下:步骤一:通过安装在工作台上相机获得高质量的拍摄照片,采集的图像存储到计算机中,评定时读取保存的图像,通过图像处理得到外螺纹边缘,边缘线的构成有许多角点,用Harris角点检测对外螺纹边缘线进行提取,外螺纹边缘的上下两条边界线上的角点都被检测出来,为了精 ...
【技术保护点】
1.一种基于机器视觉和虚拟仪器的外螺纹多参数评定方法,其特征在于方法步骤如下:步骤一:通过安装在工作台上相机获得高质量的拍摄照片,采集的图像存储到计算机中,评定时读取保存的图像,通过图像处理得到外螺纹边缘,边缘线的构成有许多角点,用Harris角点检测对外螺纹边缘线进行提取,再将左右侧外螺纹分别计算,左右侧外螺纹所检测到的数据点分别组合在一起,采用LabVIEW编程,如果其中两个数据点的y值一样,就将x值求平均值,
【技术特征摘要】
1.一种基于机器视觉和虚拟仪器的外螺纹多参数评定方法,其特征在于方法步骤如下:步骤一:通过安装在工作台上相机获得高质量的拍摄照片,采集的图像存储到计算机中,评定时读取保存的图像,通过图像处理得到外螺纹边缘,边缘线的构成有许多角点,用Harris角点检测对外螺纹边缘线进行提取,再将左右侧外螺纹分别计算,左右侧外螺纹所检测到的数据点分别组合在一起,采用LabVIEW编程,如果其中两个数据点的y值一样,就将x值求平均值,通过处理后,得到一条细化后的边缘曲线的数据点,将细化后的边缘曲线进行曲线拟合,得到平滑外螺纹边缘线,利用LabVIEW中的信号处理内置子VI将转化后信号的波峰和波谷检测出来提取外螺纹的特征点牙顶点和牙底点;步骤二:求外螺纹大径d,将...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。