您的位置:山东大学 -> 科技期刊社 -> 《山东大学学报(工学版)》

山东大学学报 (工学版) ›› 2022, Vol. 52 ›› Issue (3): 80-85.doi: 10.6040/j.issn.1672-3961.0.2020.509

• 机械与能动工程 • 上一篇    下一篇

利用图像处理技术测量丝杠螺距的机器视觉系统

韩天雨(),路长厚*(),李建美,尹昂,侯秋林   

  1. 山东大学机械工程学院, 山东 济南 250061
  • 收稿日期:2020-09-22 出版日期:2022-06-20 发布日期:2022-06-23
  • 通讯作者: 路长厚 E-mail:201834001@mail.sdu.edu.cn;luchh@sdu.edu.cn
  • 作者简介:韩天雨(1995—),女,山东烟台人,硕士研究生,主要研究方向为机器视觉和图像处理。E-mail: 201834001@mail.sdu.edu.cn
  • 基金资助:
    国家自然科学基金资助项目(51975337)

A machine vision system for measuring screw pitch with image processing techniques

Tianyu HAN(),Changhou LU*(),Jianmei LI,Ang YIN,Qiulin HOU   

  1. School of Mechanical Engineering, Shandong University, Jinan 250061, Shandong, China
  • Received:2020-09-22 Online:2022-06-20 Published:2022-06-23
  • Contact: Changhou LU E-mail:201834001@mail.sdu.edu.cn;luchh@sdu.edu.cn

摘要:

为解决接触式测量方式损伤工件以及测量设备造价昂贵的问题, 设计一种基于机器视觉的低成本、高精度的丝杠螺距测量系统。该系统依靠MATLAB平台搭建, 由图像采集系统、机械系统、步进控制系统、图像和数据处理4个子系统构成。利用亚像素图像拼接算法拼接丝杠子图像从而获得完整的丝杠图像, 通过图像增强、降噪等预处理方法改善图像质量, 采用形态学边缘提取和亚像素边缘定位的组合算法精确提取丝杠边缘, 并由数据处理程序自动测量螺距误差。试验结果表明, 机器视觉系统和标准仪器(JCS-040A)对3种型号滚珠丝杠螺距测量结果的相对误差分别不超过0.04%、0.06%、0.09%, 该方法应用于丝杠工业测量中的可行性得以验证。

关键词: 丝杠, 机器视觉, 螺距误差, 图像拼接, 图像处理

Abstract:

In order to solve problems of damage to workpiece and high-cost of measuring equipment by contact measuring method, a low-cost and high-precision screw pitch measuring system based on machine vision was designed. The system was built on MATLAB and consisted of four sub-systems: image acquisition system, mechanical system, stepping control system, image and data processing system. Sub-pixel mosaic algorithm was used to splice the sub-images of the lead screw and a complete lead screw image could be obtained. Image quality was improved by image enhancement and filtering. Morphological edge extraction and sub-pixel edge location algorithm were used to extract the screw edge accurately, and pitch errors were measured automatically by data processing program. The experimental results showed that the relative error of the machine vision system and standard instrument (JCS-040A) for the measurement results of the three types of ball screw pitches didn't exceed 0.04%、0.06%、0.09%, respectively. The feasibility of the system in industrial measurement of lead screw was validated.

Key words: screw, machine vision, pitch error, image mosaic, image processing

中图分类号: 

  • TH136

图1

测量系统平台组成"

图2

测量系统技术路线"

图3

图像拼接过程"

图4

丝杠边缘灰度分布"

图5

两种轮廓提取方法结果对比"

图6

丝杠像素级边缘提取"

图7

丝杠亚像素级边缘提取"

表1

3种滚珠丝杠样本具体参数"

丝杠型号 公称导程/ mm 公称直径/ mm 精度等级 丝杠全长/mm 实测长度/mm 任意2Π行程内行程变动量最大偏差ep/μm 指定行程内最大允差ep/μm
4210# 10 40 4 1002 355 7 18
2505-588-34# 5 25 3 588 375 6 13
3210# 10 30 4 600 370 7 18

图8

滚珠丝杠样本"

图9

滚珠丝杠激光动态行程测量仪"

图10

2种方法对3种样本螺距的测量结果"

1 焦洁, 肖正义. 12 m激光滚珠丝杠(副)动态行程测量仪的研制[J]. 设计与研究, 2013, (5): 72- 77.
JIAO Jie , XIAO Zhengyi . Development of 12m laser ball screw dynamic stroke measuring instrument[J]. Design and Research, 2013, (5): 72- 77.
2 GADELMAWLA E S . Computer vision algorithms for measurement and inspection of external screw threads[J]. Measurement, 2017, (100): 36- 49.
3 GADELMAWLA E S . Computer vision algorithms for measurement and inspection of spur gears[J]. Measurement, 2011, (44): 546- 556.
4 GADELMAWLA E S . A novel system for automatic measurement and inspection of screw threads[J]. Eng Manuf IMECH E: Part B, 2004, 2018 (B5): 545- 556.
5 ZHAO Leilei , FENG Hutian , RONG Qianfeng . A novel non-contact measuring system for the thread profile of a ball screw[J]. Mechanical Science, 2018, (9): 15- 24.
6 JING Min. Comprehensive measurement system for screw thread parameter based on machine vision[C]//Processdings of I.T. S Engineering College46. Noida, India: ICCCS, 2015: 266-270.
7 STEGER Carsten , URICH Markus , WIEDEMANN Christian . Machine vision algorithms and applications[M]. Berlin, Germany: Wiley-VCH, 2007: 279- 283.
8 郑艳飞. 基于区域配准的图像拼接算法[D]. 济南: 山东大学, 2012.
ZHENG Yanfei. Image mosaic algorithm based on regional registration[D]. Jinan: Shandong University, 2012.
9 WEI Shoude , LAI Shanghong . Fast template matching based on normalized cross correlation with adaptive multilevel winner update[J]. IEEE Transactions on Image Processing, 2008, 17 (11): 2227- 2235.
10 KUGLIN C D, HINES D C. The phase correlation image alignment method[C]//Processdings of Cybernetics and Society. New York, USA: IEEE, 1975: 163-165.
11 周虎. 高精度视觉测量系统关键技术研究与应用[D]. 上海: 东华大学, 2011.
ZHOU Hu. Research and application key technology for high precision image measurement system[D]. Shanghai: Donghua University, 2011.
12 侯秋林, 孙杰, 黄攀凌, 等. 基于机器视觉刀具几何参数检测算法与误差分析[J]. 山东大学学报(工学版), 2017, 47 (4): 78- 82.
HOU Qiulin , SUN Jie , HUANG Panling , et al. Algorithm and error analysis of tool geometric parameters detection based on machine vision[J]. Journal of Shandong University (Engineering Science), 2017, 47 (4): 78- 82.
13 周策策. 基于机器视觉的螺纹参数测量系统[D]. 天津: 天津大学, 2015.
ZHOU Cece. Thread parameter measuring system based on machine vision[D]. Tianjin: Tianjin University, 2015.
14 于梦竹. 基于亚像素边缘检测的图像放大算法研究与实现[D]. 哈尔滨: 哈尔滨工程大学, 2013.
YU Mengzhu. Research on image magnification algorithm based on sub-pixel edge detection[D]. Harbin: Harbin Engineering University, 2013.
15 厉超. 三米滚珠丝杠螺距精度动态测量系统研究[D]. 济南: 山东大学, 2007.
LI Chao. Study on dynamic measurement system of pitch precision of 3-meter ball screw[D]. Jinan: Shandong University, 2007.
[1] 鲁志恒,霍延强,韩汶,杜聪,刘轶鹏,张宏博. 基于图像数据和碎石集料级配与用量的碎石集料空隙率快速检测方法[J]. 山东大学学报 (工学版), 2024, 54(6): 89-99.
[2] 岳仁峰,张嘉琦,刘勇,范学忠,李琮琮,孔令鑫. 基于颜色和纹理特征的立体车库锈蚀检测技术[J]. 山东大学学报 (工学版), 2024, 54(3): 64-69.
[3] 于畅,伍星,邓秋菊. 基于深度学习的多视角螺钉缺失智能检测算法[J]. 山东大学学报 (工学版), 2023, 53(4): 104-112.
[4] 宋怀雷, 邬忠虎, 李利平, 娄义黎, 孙文吉斌, 刘镐, 左宇军. 基于数字图像的微观尺度下方解石脉对页岩各向异性的影响[J]. 山东大学学报 (工学版), 2021, 51(5): 91-99.
[5] 蔡国永,贺歆灏,储阳阳. 基于空间注意力和卷积神经网络的视觉情感分析[J]. 山东大学学报 (工学版), 2020, 50(4): 8-13.
[6] 刘保成,朴燕,宋雪梅. 联合检测的自适应融合目标跟踪[J]. 山东大学学报 (工学版), 2020, 50(3): 51-57.
[7] 宋士奇,朴燕,蒋泽新. 基于改进YOLOv3的复杂场景车辆分类与跟踪[J]. 山东大学学报 (工学版), 2020, 50(2): 27-33.
[8] 张宪红,张春蕊. 基于六维前馈神经网络模型的图像增强算法[J]. 山东大学学报(工学版), 2018, 48(4): 10-19.
[9] 侯秋林,孙杰,皇攀凌,孙超,牟文平. 基于机器视觉刀具几何参数检测算法与误差分析[J]. 山东大学学报(工学版), 2017, 47(4): 77-82.
[10] 孟令恒,丁世飞. 基于单静态图像的深度感知模型[J]. 山东大学学报(工学版), 2016, 46(3): 37-43.
[11] 邱晓欣1,2,张文强1,2*,秦晋贤1,2,杜正阳1,2,张德峰1,2. 恶劣环境下多目标实时跟踪算法研究[J]. 山东大学学报(工学版), 2014, 44(2): 21-27.
[12] 高大龙,黄雅平*,李清勇,王胜春,罗四维. 基于列车前向运动视频的全景图拼接算法[J]. 山东大学学报(工学版), 2013, 43(6): 1-6.
[13] 潘晟旻1,2,钟毅1*,王建华2. 基于改进Canny算子的坯料挤压变形边缘提取[J]. 山东大学学报(工学版), 2013, 43(5): 19-23.
[14] 徐姗姗,刘应安*,徐昇. 基于卷积神经网络的木材缺陷识别[J]. 山东大学学报(工学版), 2013, 43(2): 23-28.
[15] 王玉英1,张西忠2,杨森2. 基于新型矢量排序的soft多结构形态学彩色图像处理[J]. 山东大学学报(工学版), 2011, 41(2): 18-22.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
[1] 张永花,王安玲,刘福平 . 低频非均匀电磁波在导电界面的反射相角[J]. 山东大学学报(工学版), 2006, 36(2): 22 -25 .
[2] 孔祥臻,刘延俊,王勇,赵秀华 . 气动比例阀的死区补偿与仿真[J]. 山东大学学报(工学版), 2006, 36(1): 99 -102 .
[3] 来翔 . 用胞映射方法讨论一类MKdV方程[J]. 山东大学学报(工学版), 2006, 36(1): 87 -92 .
[4] 余嘉元1 , 田金亭1 , 朱强忠2 . 计算智能在心理学中的应用[J]. 山东大学学报(工学版), 2009, 39(1): 1 -5 .
[5] 季涛,高旭,孙同景,薛永端,徐丙垠 . 铁路10 kV自闭/贯通线路故障行波特征分析[J]. 山东大学学报(工学版), 2006, 36(2): 111 -116 .
[6] 秦通,孙丰荣*,王丽梅,王庆浩,李新彩. 基于极大圆盘引导的形状插值实现三维表面重建[J]. 山东大学学报(工学版), 2010, 40(3): 1 -5 .
[7] 孙殿柱,朱昌志,李延瑞 . 散乱点云边界特征快速提取算法[J]. 山东大学学报(工学版), 2009, 39(1): 84 -86 .
[8] 李辉平, 赵国群, 张雷, 贺连芳. 超高强度钢板热冲压及模内淬火工艺的发展现状[J]. 山东大学学报(工学版), 2010, 40(3): 69 -74 .
[9] 薛翊国,李术才,赵岩,苏茂鑫,李为腾,丁志海. 青岛胶州湾海底隧道F44含水断层注浆前后TSP探测分析[J]. 山东大学学报(工学版), 2009, 39(2): 108 -112 .
[10] 胡天亮,李鹏,张承瑞,左毅 . 基于VHDL的正交编码脉冲电路解码计数器设计[J]. 山东大学学报(工学版), 2008, 38(3): 10 -13 .